# HG changeset patch # User Paul Boddie # Date 1555359024 -7200 # Node ID 7b8c8ccb00a303c434e91b6a67875dc4a4c0f9e7 # Parent 9c0eca408f20b3f2b2a32ea0474708e6ceff0233 Sort attachment filenames. diff -r 9c0eca408f20 -r 7b8c8ccb00a3 moinformat/macros/attachlist.py --- a/moinformat/macros/attachlist.py Mon Apr 15 22:07:26 2019 +0200 +++ b/moinformat/macros/attachlist.py Mon Apr 15 22:10:24 2019 +0200 @@ -60,6 +60,11 @@ else: filenames = all_filenames + # Sort the filenames. + # NOTE: The actual sort order should be controlled. + + filenames.sort() + # Prepare a list of links. items = []