Closed acpcreation closed 1 year ago
This is already sorted by Threat Level
I think that this is still not sorted in v 2.x.x use this URL to test https://www.npmjs.com/package/lodash/v/4.17.19 Actual:
9 | CVE-2021-23337 10 | sonatype-2019-0467 10 | sonatype-2020-0739
Expected: 10 ->10 -> 9 (sort by CVSS descending then by CVE descending) 10 | sonatype-2020-0739 10 | sonatype-2019-0467 9 | CVE-2021-23337
Added sort code const pv = nexusContext.policyDetails.results[0].policyData.policyViolations.sort( (a, b) => b.threatLevel - a.threatLevel );
bug: sort policy table by threat level