"users": {
"673336994218377285": {"votes": 5},
"541388453708038165": {"votes": 1},
"845444326065700865": {"votes": 9}
}
How can I sort a dictionary depending on the "votes" key of the nested dictionary? The dictionary should look like this:
"users": {
"845444326065700865": {"votes": 9},
"673336994218377285": {"votes": 5},
"541388453708038165": {"votes": 1}
}