pub fn sorted_indices<T: Ord>(keys: &[T]) -> Vec<usize>
Expand description
Returns the indices of keys
in sorted order. These indices are used to reorder some other
array according to the sorted order of the keys
.
This version works in cases where the size of the slice is not known at compile time,
returning an allocated Vec
.