advanced code snippet search
magicrebirth on 05/17/10
Dictionaries cant be sorted, so you need to transform it into a list and sort that one!
You could use: sorted(dictionaryObject.items(), key=lambda x: x )
Report this snippet
You need to login to post a comment.