2019-04-15 | Paul Boddie | raw files shortlog changelog graph | Sort attachment filenames. | |
moinformat/macros/attachlist.py (file) |
1.1 --- a/moinformat/macros/attachlist.py Mon Apr 15 22:07:26 2019 +0200 1.2 +++ b/moinformat/macros/attachlist.py Mon Apr 15 22:10:24 2019 +0200 1.3 @@ -60,6 +60,11 @@ 1.4 else: 1.5 filenames = all_filenames 1.6 1.7 + # Sort the filenames. 1.8 + # NOTE: The actual sort order should be controlled. 1.9 + 1.10 + filenames.sort() 1.11 + 1.12 # Prepare a list of links. 1.13 1.14 items = []