Possible Duplicate:
Python: Sort a dictionary by value
I am trying to sort a dictionary by its values using sorted(data.items(),key=operator.itemgetter(1))
I manage to sort the values correctly, but I get a list not a dictionary.
Could sb tell me how to sort my dictionary saving dictionary type?
thanks!