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

Reply via email to