changeset 5448:754be676ccc8

set key for history sort to avoid sorting history args (could be a dict)
author Christof Meerwald <cmeerw@cmeerw.org>
date Thu, 19 Jul 2018 22:23:53 +0100
parents 41532b2ab141
children ddf1cf299ebc
files roundup/cgi/templating.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Jul 19 21:58:24 2018 +0100
+++ b/roundup/cgi/templating.py	Thu Jul 19 22:23:53 2018 +0100
@@ -975,7 +975,7 @@
 
         # get the journal, sort and reverse
         history = self._klass.history(self._nodeid, skipquiet=(not showall))
-        history.sort()
+        history.sort(key=lambda a: a[:3])
         history.reverse()
 
         # restrict the volume

Roundup Issue Tracker: http://roundup-tracker.org/