You're going to need to write your own algorithim as none of the standard algorithims provide only indexes. You can take any of the classic sort algorithims.
Create a copy of the source array since you don't want to modify that. Then as you're storing numbers in to the output array, store it's index into the index array.
Thanks for the reply.
The original array can be modified as I am not interested in it any more. I only require the indexes. So the original array can be used and changed during computation.