Merge "Reverse sort previous elections output"

This commit is contained in:
Zuul 2018-04-09 04:31:12 +00:00 committed by Gerrit Code Review
commit 073d477941

View File

@ -98,7 +98,7 @@ def build_lists(app):
""
]
archived_dir = os.path.join(".", "doc", "source", "results")
for previous in os.listdir(archived_dir):
for previous in sorted(os.listdir(archived_dir), reverse=True):
if build_archive(previous, "ptl"):
previous_toc.append(" results/%s/ptl.rst" % previous)
if build_archive(previous, "tc"):