We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab089ae commit 7ec40c7Copy full SHA for 7ec40c7
roundup/cgi/templating.py
@@ -323,7 +323,13 @@ def list(self):
323
klass = HTMLUser
324
else:
325
klass = HTMLItem
326
- l = [klass(self._client, self.classname, x) for x in self._klass.list()]
+
327
+ # get the list and sort it nicely
328
+ l = self._klass.list()
329
+ sortfunc = make_sort_function(self._db, self._prop.classname)
330
+ l.sort(sortfunc)
331
332
+ l = [klass(self._client, self.classname, x) for x in l]
333
return l
334
335
def csv(self):
0 commit comments