[][src]Function arrow::compute::kernels::sort::sort

pub fn sort(values: &ArrayRef, options: Option<SortOptions>) -> Result<ArrayRef>

Sort the ArrayRef using SortOptions.

Performs a stable sort on values and indices. Nulls are ordered according to the nulls_first flag in options. For floating point arrays any NaN values are considered to be greater than any other non-null value.

Returns an ArrowError::ComputeError(String) if the array type is either unsupported by sort_to_indices or take.