I have a array in PHP like so
$somevar = array(1, 5, 2, 7, 17, 2, 13);
I want to sort the array, but not move the values around, so I get another array with the order of the index/keys.
So my new array would be something like
{0, 2, 5, 1, 3, 6, 4}
Which is the order of the keys