You are viewing a single comment's thread. Return to all comments →
This should do too:
def comparator(a, b): if a.score > b.score: return -1 elif a.score < b.score: return 1 elif a.name > b.name: return 1 return -1
Seems like cookies are disabled on this browser, please enable them to open this website
Sorting: Comparator
You are viewing a single comment's thread. Return to all comments →
This should do too: