From c0f9a382b332042df7eadc72f991be07f7d9493e Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 3 May 2015 07:54:15 -0400 Subject: [PATCH] minor fix to sorting Former-commit-id: de65b06be56d1d6ed3d6913819227b7f49f916d5 --- .../src/main/resources/templates/HtmlReport.vsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl index b4835a644..e1b217a47 100644 --- a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl +++ b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl @@ -593,8 +593,10 @@ arising out of or in connection with the use of this tool, the analysis performe #end #if ($cpeIdConf == "") #set($cpeIdConf=$id.confidence) + #set($cpeSort=$id.confidence.ordinal()) #elseif ($cpeIdConf.compareTo($id.confidence)>0) #set($cpeIdConf=$id.confidence) + #set($cpeSort=$id.confidence.ordinal()) #end #set($cpeIdCount=$cpeIdCount+1) #end @@ -625,7 +627,7 @@ arising out of or in connection with the use of this tool, the analysis performe #end $dependency.getVulnerabilities().size() - $cpeIdConf + $cpeIdConf $dependency.getEvidenceForDisplay().size() #end