title: Giving index of list in ascending order
body: <p>I need to sort an array, but giving the original indexs of the items. Sorry it is hard to explain via words.</p>
  
  <p>Eg.</p>
  
  <pre><code>apple = 50 for 3 kg
  pear = 100 for 5 kg
  orange = 150 for 10 kg
  </code></pre>
  
  <pre><code>list1 = ['apple','pear','orange']
  </code></pre>
  
  <p>I ready created a function to calculate the price per kilo, and I got a list returned:</p>
  
  <pre><code>[16.666, 20, 15]
  </code></pre>
  
  <p>and now I need to create a function to have list1 as parameter and turn <code>[2,0,1]</code>, that's the indexes of items in ascending order.</p>
  
  <p>can't use np, and sorted doesnt seem to work</p>