From debeac14c11a0196334c67ab39ad276b37d696ab Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 24 Dec 2020 13:29:56 -0500 Subject: [PATCH] Stop reversing changelog entries This makes entries show up in the same order in the generated docs as in changelog.txt The only other significant difference this causes is that when notes from multiple prereleases are combined into one stable release, changes from the newer version will show up first now (i.e. in the same order as reading the changelog from the top down), but this has minimal impact. --- docs/sphinx_extensions/dfhack/changelog.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/sphinx_extensions/dfhack/changelog.py b/docs/sphinx_extensions/dfhack/changelog.py index 37fe289cb..0818e2501 100644 --- a/docs/sphinx_extensions/dfhack/changelog.py +++ b/docs/sphinx_extensions/dfhack/changelog.py @@ -156,9 +156,6 @@ def parse_changelog(): def consolidate_changelog(all_entries): for sections in all_entries.values(): for section, entries in sections.items(): - # sort() is stable, so reverse entries so that older entries for the - # same feature are on top - entries.reverse() entries.sort(key=lambda entry: entry.sort_key) new_entries = [] for feature, group in itertools.groupby(entries,