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:
@@ -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
|
||||
|
Reference in New Issue
Block a user