Trait polars_core::chunked_array::ops::ChunkSort
source · pub trait ChunkSort<T: PolarsDataType> {
// Required methods
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>;
fn sort(&self, descending: bool) -> ChunkedArray<T>;
fn arg_sort(&self, options: SortOptions) -> IdxCa;
// Provided method
fn arg_sort_multiple(
&self,
by: &[Column],
_options: &SortMultipleOptions,
) -> PolarsResult<IdxCa> { ... }
}
Expand description
Sort operations on ChunkedArray
.
Required Methods§
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>
sourcefn sort(&self, descending: bool) -> ChunkedArray<T>
fn sort(&self, descending: bool) -> ChunkedArray<T>
Returned a sorted ChunkedArray
.
sourcefn arg_sort(&self, options: SortOptions) -> IdxCa
fn arg_sort(&self, options: SortOptions) -> IdxCa
Retrieve the indexes needed to sort this array.
Provided Methods§
sourcefn arg_sort_multiple(
&self,
by: &[Column],
_options: &SortMultipleOptions,
) -> PolarsResult<IdxCa>
fn arg_sort_multiple( &self, by: &[Column], _options: &SortMultipleOptions, ) -> PolarsResult<IdxCa>
Retrieve the indexes need to sort this and the other arrays.