/ Published in: Python
![](/img/icon_sav.png?v3)
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] )
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)