numpy.ma.argsort()

numpy.ma.argsort

numpy.ma.argsort(a, axis=None, kind='quicksort', order=None, fill_value=None) [source]

Return an ndarray of indices that sort the array along the specified axis. Masked values are filled beforehand to fill_value.

Parameters:

axis : int, optional

Axis along which to sort. The default is -1 (last axis). If None, the flattened array is used.

fill_value : var, optional

Value used to fill the array befo