cupy.sort

cupy.sort(a)[source]

Returns a sorted copy of an array with a stable sorting algorithm.

Parameters:a (cupy.ndarray) – Array to be sorted.
Returns:Array of the same type and shape as a.
Return type:cupy.ndarray

Note

For its implementation reason, cupy.sort currently supports only arrays with their rank of one and does not support axis, kind and order parameters that numpy.sort does support.

See also

numpy.sort()