def sort_dict_by_values(adict):
 return OrderedDict(sorted(adict.items(), key=(lambda item: item[1])))

def sort_dict_by_values ( adict ) : return OrderedDict ( sorted ( adict . items ( ) , key = ( lambda item : item [ 1 ] ) ) )
sort a dict by value and return an ordereddict - used by modules/eden/irs .