title: Sort numpy.array rows by indices
body: <p>I have 2D <code>numpy.array</code> and a tuple of indices:</p>
  
  <pre><code>a = array([[0, 0], [0, 1], [1, 0], [1, 1]])
  ix = (2, 0, 3, 1)
  </code></pre>
  
  <p>How can I sort array's rows by the indices? Expected result:</p>
  
  <pre><code>array([[1, 0], [0, 0], [1, 1], [0, 1]])
  </code></pre>
  
  <p>I tried using <code>numpy.take</code>, but it works as I expect only with 1D arrays.</p>