Hi everyone
I have a question and I need your help
I want to sort an array but I dont want to change the index
I mean if I have an array Array[6,5,4,3,2,1] it will be like this
0 6
1 5
2 4
3 3
4 2
5 1
and after i sort it, it will be like this
0 1
1 2
2 3
3 4
4 5
5 6
but I want to sort it and keep the index with the value
5 1
4 2
3 3
2 4
1 5
0 6
please let me know if there is any function to sort the array as i wrote above
ur help will be greatly appreciated