Sorting a dictionary by value then by key
<p>This seems like it has to be a dupe but my SO-searching-fu is poor today...</p>

<p>Say I have a dictionary of integer key/values, how can I sort the dictionary by the values descending, then by the key descending (for common values).</p>

<p>Input:</p>

<pre><code>{12:2, 9:1,  14:2}
{100:1, 90:4, 99:3, 92:1, 101:1}
</code></pre>

<p>Output:</p>

<pre><code>[(14,2), (12,2), (9,1)]  # output from print 
[(90,4), (99,3), (101,1), (100,1), (92,1)]
</code></pre>
