SyntaxFix
Write A Post
Hire A Developer
Questions
From your comment to gnibbler answer, i'd say you want a list of pairs of key-value sorted by value:
sorted(data.items(), key=lambda x:x[1])