Function sort

Source
pub fn sort<T>(input: &Array<T>, dim: u32, ascending: bool) -> Array<T>
where T: HasAfEnum + RealNumber,
Expand description

Sort the values in input Arrays

Sort an multidimensional Array along a given dimension

§Parameters

  • input - Input Array
  • dim - Dimension along which to sort
  • ascending - Sorted output will have ascending values if True and descending order otherwise.

§Return Values

Sorted Array.