title: Get indices of N maximum values in a numpy array without sorting them?
body: <p>My question is very similar to this one: <a href="https://stackoverflow.com/questions/6910641/how-to-get-indices-of-n-maximum-values-in-a-numpy-array">How to get indices of N maximum values in a numpy array?</a></p>
  
  <p>But I would like to get the indices in the same order I find them. </p>
  
  <p>Let's take the example marked in that question as the correct solution:</p>
  
  <pre><code>import numpy as np
  arr = np.array([1, 3, 2, 4, 5])
  arr.argsort()[-3:][::-1]
  
  array([4, 3, 1])
  </code></pre>
  
  <p>The result I'm looking for instead should be like:</p>
  
  <pre><code>array([1, 3, 4])
  </code></pre>