Sort a numpy array like a table
<p>I have a list</p>

<pre><code>[[0, 3], [5, 1], [2, 1], [4, 5]]
</code></pre>

<p>which I have made into an array using numpy.array:</p>

<pre><code>[[0 3]
 [5 1]
 [2 1]
 [4 5]]
</code></pre>

<p>How do I sort this like a table? In particular, I want to sort by the second column in ascending order and then resolve any ties by having the first column sorted in ascending order. Thus I desire:</p>

<pre><code>[[2 1]
 [5 1]
 [0 3]
 [4 5]]
</code></pre>

<p>Any help would be greatly appreciated!</p>
