Another alternative: d1 = {'a':4,'b':5,'c':1,'d':2,'e':3}
il=[(v,k) for k,v in d1.items()] il.sort() -- http://mail.python.org/mailman/listinfo/python-list
Another alternative: d1 = {'a':4,'b':5,'c':1,'d':2,'e':3}
il=[(v,k) for k,v in d1.items()] il.sort() -- http://mail.python.org/mailman/listinfo/python-list