Python dictionary with frequency
<p>I have a dictionary with a key and an item. Basically, keys keep people name and the values keep salary. What I want is that ordering items according to their frequency with the higher value.       </p>

<pre><code>d = {'name-1': 100, 'name-2':90, 'name-3': 80, 'name-1': 80}
    print OrderedDict(sorted(d.items(), key=lambda t: t[1]))
</code></pre>

<p>So, the output should be <code>('name-1':100)</code>. Because, the occurrence is two in the dict and the salary is the highest.  </p>

<p>I can only sort this dict. Could you please help me to get that result ? </p>
