Sort Dictionary by Values : <p>I have a dictionary of ints.</p>

<pre><code>d = {'jjd':2,'ddf':1,'kik':3}
</code></pre>

<p>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:</p>

<pre><code>for x in results:
    print d[x]
</code></pre>

<p>this should print out:
    ['kik','jjd','ddf']</p>
