Hi,
I have an array that I want to sort without losing the index
information.
For eg. sorting X[5] = {34.5, 56.4, 12.9, 43.2, 21.7};
should return {2, 4, 0, 3, 1}
Could you please tell me how to do it quickly.
Many thanks,
Speed.
I have an array that I want to sort without losing the index
information.
For eg. sorting X[5] = {34.5, 56.4, 12.9, 43.2, 21.7};
should return {2, 4, 0, 3, 1}
Could you please tell me how to do it quickly.
Many thanks,
Speed.
Comment