summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/ListView.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/ListView.js b/src/components/ListView.js
index 6cd68cb..9eec7bf 100644
--- a/src/components/ListView.js
+++ b/src/components/ListView.js
@@ -121,6 +121,19 @@ class ListView extends React.Component {
<table id="main">
<tbody>
{this.state.scans
+ .sort((a, b) =>
+ Date.parse(
+ a.timestamp_in_utc.replace(" UTC", "") >
+ Date.parse(
+ b.timestamp_in_utc.replace(
+ " UTC",
+ ""
+ )
+ )
+ )
+ ? 1
+ : -1
+ )
.map(scan =>
scan.result
.filter(res => res.vulnerable)