method
ndarray.
argsort
Returns the indices that would sort this array.
Refer to numpy.argsort for full documentation.
numpy.argsort
See also
equivalent function