Skip to main content

sort

Function sort 

Source
pub fn sort<T, D>(
    a: &Array<T, D>,
    axis: Option<usize>,
    kind: SortKind,
) -> FerrayResult<Array<T, D>>
where T: Element + PartialOrd + Copy + Send + Sync, D: Dimension,
Expand description

Sort an array along the given axis (or flattened if axis is None).

Returns a new sorted array with the same shape.

Equivalent to numpy.sort.