Here is an example of a list
accounts = {
"user1": {
"password": "test",
"won": 8,
"lost": 1,
"colour": "green"
},
"user2": {
"password": "test",
"won": 12,
"lost": 4,
"colour": "blue"
},
"user3": {
"password": "test",
"won": 18,
"lost": 1,
"colour": "blue"
}}
How would I go about sorting these by 'won'? I just cannot seem to figure it out. Thanks!