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