Sorting, searching, and counting
================================

.. Hint:: `NumPy API Reference: Sorting, searching, and counting <https://numpy.org/doc/stable/reference/routines.sort.html>`_

.. currentmodule:: cupy

Sorting
-------

.. autosummary::
   :toctree: generated/

   sort
   lexsort
   argsort
   msort
   sort_complex
   partition
   argpartition

.. seealso:: :func:`cupy.ndarray.sort`

Searching
---------

.. autosummary::
   :toctree: generated/

   argmax
   nanargmax
   argmin
   nanargmin
   argwhere
   nonzero
   flatnonzero
   where
   searchsorted
   extract

Counting
--------

.. autosummary::
   :toctree: generated/

   count_nonzero
