How do I sort the rows of a 2d numpy array based on indices given by another 2d numpy array
<p>Example:</p>

<pre><code>arr = np.array([[.5, .25, .19, .05, .01],[.25, .5, .19, .05, .01],[.5, .25, .19, .05, .01]])
print(arr)
[[ 0.5   0.25  0.19  0.05  0.01]
 [ 0.25  0.5   0.19  0.05  0.01]
 [ 0.5   0.25  0.19  0.05  0.01]]

idxs = np.argsort(arr)
print(idxs)
[[4 3 2 1 0]
 [4 3 2 0 1]
 [4 3 2 1 0]]
</code></pre>

<p>How can I use <code>idxs</code> to index <code>arr</code>?  I want to do something like <code>arr[idxs]</code>, but this does not work.</p>