arrow::compute

Function partial_sort

pub fn partial_sort<T, F>(v: &mut [T], limit: usize, is_less: F)
where F: FnMut(&T, &T) -> Ordering,
Expand description

It’s unstable_sort, may not preserve the order of equal elements