mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
listing: Sort actions correctly
This commit is contained in:
@@ -547,10 +547,7 @@ def get_user_actions(user, sort, time):
|
||||
results.append(thing + (action_type,))
|
||||
unique_ids.add(thing[0])
|
||||
|
||||
comparator = ThingTupleComparator(actions_by_type[0][0])
|
||||
results.sort(cmp=comparator)
|
||||
|
||||
return results
|
||||
return sorted(results, key=lambda x: x[1], reverse=True)
|
||||
|
||||
|
||||
def get_overview(user, sort, time):
|
||||
|
||||
Reference in New Issue
Block a user