I cannot find one example of somebody doing this, only sorting by the first item. Here is my code:
dict.sort()
for key in dict.keys():
print key, "%8s"% dict[key]
I'm only getting an alphabetical sorting of the left side of the dictionary..
like this: a:4 c:3 b:12
a 4
b 12
c 3
I want it to be this:
c 3
a 4
b 12