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:
parent
8b2c8226a8
commit
90635dd2c1
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user