The function numpy.argsort
seems to return sorted 1D-array in increasing order. For example,
import numpy as np
x = np.array([3, 1, 2])
ind = np.argsort(x)
x[ind]
returns array([1, 2, 3])
. However, I've read through its documentation but could not find this information.
Could you please explain how to get it?