I have a dictionary of ints.
d = {'jjd':2,'ddf':1,'kik':3}
Its much longer then this though. I want to sort by values highest to lowest. But I really want the results returned in an array so I can iterate through it like so:
for x in results:
print d[x]
this should print out: ['kik','jjd','ddf']