matrix.
argsort
Returns the indices that would sort this array.
Refer tonumpy.argsort for full documentation.
numpy.argsort
See also
numpy.matrix.argpartition
numpy.matrix.astype