Python 2.5 dictionary 2 key sort
<p>I have a dictionary of 200,000 items (the keys are strings and the values are integers).</p>

<p>What is the best/most pythonic way to print the items sorted by descending value then ascending key (i.e. a 2 key sort)?</p>

<pre><code> a={ 'keyC':1, 'keyB':2, 'keyA':1 }
b = a.items()
b.sort( key=lambda a:a[0])
b.sort( key=lambda a:a[1], reverse=True )
print b
&gt;&gt;&gt;[('keyB', 2), ('keyA', 1), ('keyC', 1)]
</code></pre>
