Commit fcc97202 authored by Roshan Rabinarayan's avatar Roshan Rabinarayan

sorted lexicographically

parent 3619491b
...@@ -27,9 +27,8 @@ for i in input: ...@@ -27,9 +27,8 @@ for i in input:
matches[matchInfo[0]]=currentMatchDetails matches[matchInfo[0]]=currentMatchDetails
players=sorted(players.items() , key=lambda x: x[0],reverse=True ) players=sorted(players.items() , key=lambda x: (x[1],x[0]),reverse=True )
players=dict(players)
players=sorted(players.items() , key=lambda x: x[1],reverse=True )
print(matches) print(matches)
print(players) print(players)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment