pub fn sort_by<T, F>(v: &mut [T], compare: F)where F: FnMut(&T, &T) -> Ordering,
See slice::sort_by.
slice::sort_by