I have a dict that looks like this
{ \"keyword1\":3 , \"keyword2\":1 , \"keyword3\":5 , \"keyword4\":2 }
And I would like to convert it DESC and
i always did it this way....are there advantages to using the sorted method?
keys = dict.keys() keys.sort( lambda x,y: cmp(dict[x], dict[y]) )
whoops didnt read the part about not using lambda =(