How to sort dictionary by pseudo-compound key?
<p>I have a dictionary:</p>

<pre><code>test = {}
test[(1,2)] = 1
test[(4,3)] = 1
test[(1,4)] = 1
</code></pre>

<p>How to sort by "pseudo compound key": first element of tuple and after second element of tuple ?</p>
