### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »

# numpy.ma.MaskedArray.argsort

`MaskedArray.``argsort`(axis=None, fill_value=None, kind='quicksort', order=None)

  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. If not given, the flattened array is used. kind : {‘quicksort’, ‘mergesort’, ‘heapsort’}, optional Sorting algorithm. order : list, optional When a is an array with fields defined, this argument specifies which fields to compare first, second, etc. Not all fields need be specified. Returns : ——- : index_array : ndarray, int Array of indices that sort a along the specified axis. In other words, `a[index_array]` yields a sorted a.

  See also

  `sort`
    Describes sorting algorithms used.
  `lexsort`
    Indirect stable sort with multiple keys.
  `ndarray.sort`
    Inplace sort.

  Notes

  See sort for notes on the different sorting algorithms.

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »