I try to sort an array:
import numpy as nparr = [5,3,7,2,6,34,46,344,545,32,5,22]
print "unsorted"
print arrnp.argsort(arr)print "sorted"
print arr
But the output is:
unsorted
[5, 3, 7, 2, 6, 34, 46, 344, 545, 32, 5, 22]
sorted
[5, 3, 7, 2, 6, 34, 46, 344, 545, 32, 5, 22]
The array does not change at all