Reverse sort previous elections output

Our current list appears to be unsorted at best, leading to an out of
order history of the previous elections.  Reverse the list displaying
recent (first) to latest (last) results.

Change-Id: I8228aeaac205c35633f3c6e5279497c6b7177125
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-04 18:23:10 -04:00
parent 8b2c8226a8
commit 90635dd2c1
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

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"):