Sort main menu list by date

This commit is contained in:
CorpNewt 2018-10-08 16:49:51 -05:00 committed by GitHub
parent c313546e55
commit 7ff7192787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,7 +291,7 @@ class gibMacOS:
if not len(self.mac_prods):
print("No installers in catalog!")
print("")
for p in sorted(self.mac_prods, key=lambda x:x['version'], reverse=True):
for p in self.mac_prods:
num += 1
var1 = "{}. {} {}".format(num, p["title"], p["version"])
var2 = " - {} - Added {}".format(p["product"], p["date"])