def argsort(self, ascending=True, kind='<STR_LIT>', *args, **kwargs):
<EOL>ascending = nv.validate_argsort_with_ascending(ascending, args, kwargs)<EOL>values = self._values_for_argsort()<EOL>result = np.argsort(values, kind=kind, **kwargs)<EOL>if not ascending:<EOL><INDENT>result = result[::-<NUM_LIT:1>]<EOL><DEDENT>return result<EOL>
Return the indices that would sort this array.

Parameters
----------
ascending : bool, default True
    Whether the indices should result in an ascending
    or descending sort.
kind : {'quicksort', 'mergesort', 'heapsort'}, optional
    Sorting algorithm.
*args, **kwargs:
    passed through to :func:`numpy.argsort`.

Returns
-------
index_array : ndarray
    Array of indices that sort ``self``.

See Also
--------
numpy.argsort : Sorting implementation used internally.