pub fn reorder_by_keys<T: Ord + Copy, U: Copy>(keys: &mut [T], values: &mut [U])Expand description
Reorder values according to the sorted order of keys.
Both slices are assumed to have the same length. This version works in cases where
the size of the slice is not known at compile time, returning an allocated Vec.