/ Published in: Python
Dictionaries cant be sorted, so you need to transform it into a list and sort that one!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
You could use: sorted(dictionaryObject.items(), key=lambda x: x[1] )