title: How can I get an array of the indexes from another array that has been sorted?
body: <p>I want to sort an array by its objets and then get the indexes like so:</p>
  
  <pre><code>NSMutableArray *myArray = [[NSMutableArray alloc] initWithObjects: @"3", @"2", @"1", @"0", @"1", @"2", nil];
  </code></pre>
  
  <p>I want the indexes of the objects in ascending order. Here, because the lowest value has an index of 3, the indexes would be would be: 3, 2, 4, 1, 5, 0 or something like that.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>