Skip to content

Commit 237cd40

Browse files
committed
set key for history sort to avoid sorting history args (could be a dict)
1 parent d6c960e commit 237cd40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def history(self, direction='descending', dre=re.compile('^\d+$'),
975975

976976
# get the journal, sort and reverse
977977
history = self._klass.history(self._nodeid, skipquiet=(not showall))
978-
history.sort()
978+
history.sort(key=lambda a: a[:3])
979979
history.reverse()
980980

981981
# restrict the volume

0 commit comments

Comments
 (0)