1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-30 01:44:11 +02:00

sort request lists by id

This commit is contained in:
Ludwig Nussel
2011-02-09 14:57:10 +01:00
parent 09cee2a9f0
commit 69458ca8c4
2 changed files with 6 additions and 3 deletions

View File

@@ -6122,4 +6122,7 @@ def filter_role(meta, user, role):
for node in delete:
root.remove(node)
def requests_sort(requests):
return sorted(requests, cmp=lambda a,b: cmp(int(a.reqid), int(b.reqid)))
# vim: sw=4 et