Numeric ordering of bug ids

Closes bug 1204926

Change-Id: I1cd3f672bcf8a68483182c28660203a3ff86e2c0
This commit is contained in:
Ilya Shakhat
2013-08-08 18:48:18 +04:00
parent 661c1ec71a
commit dcc2895a26

View File

@@ -458,7 +458,7 @@ def contribution_details(records, limit=DEFAULT_RECORDS_LIMIT):
key=lambda x: x['id'])
bugs = sorted([{'id': key, 'records': value}
for key, value in bugs_map.iteritems()],
key=lambda x: x['id'])
key=lambda x: int(x['id']))
commits.sort(key=lambda x: x['date'], reverse=True)
result = {