When an issue affects more than one release list the releases latest first
[openssl-web.git] / bin / mk-cvepage
index 4a6f94290171e5125a84b9bf56c09df1198fd80b..8dbb864e3724fa88581d2d4e951f8937c132dc8b 100755 (executable)
@@ -115,7 +115,7 @@ for issue in sorted(issues, key=lambda x: (x.getAttribute('public'), x.getElemen
     allissues += "<ul>"
 
     also = []
-    for affects in issue.getElementsByTagName('fixed'):
+    for affects in sorted(issue.getElementsByTagName('fixed'), key=lambda x: (x.getAttribute("base")), reverse=True):
         if options.base:
             if (affects.getAttribute("base") not in options.base):
                 also.append("OpenSSL <a href=\"vulnerabilities-%s.html#CVE-%s\">%s</a>" %( affects.getAttribute('base'), cve, affects.getAttribute('version')))