diff --git a/staticSiteGenerator.py b/staticSiteGenerator.py index 8a68bf9..7d9a691 100755 --- a/staticSiteGenerator.py +++ b/staticSiteGenerator.py @@ -72,7 +72,7 @@ def isbnFormatFunction(isbnToFormat): logger.info("Locations: {0}".format(recordsToWrite.keys())) templateVars = { - "locations": recordsToWrite.keys(), + "locations": sorted(recordsToWrite.keys(), reverse=True), "firstLocation": list(recordsToWrite.keys())[0], "generationTime": datetime.datetime.now().astimezone().replace(microsecond=0).isoformat(), "records": recordsToWrite,