Function indxvec::merge::sortm [−][src]
pub fn sortm<T>(s: &[T], ascending: bool) -> Vec<T> where
T: PartialOrd + Copy,
Expand description
Immutable sort. Returns new sorted vector (ascending or descending). Is a wrapper for mergesort. Passes the boolean flag ‘ascending’ onto ‘unindex’. Mergesort by itself always produces only an ascending index.