items = [ (y,x) for x,y in mydict.items() ] items.sort() -- bjorn hwan-jo yu wrote: > Hi, > If I sort the items() of dictionary, it is sorted by first the key and > second the value. > How can I sort it by the values ? > Thanks in advance.