Function rstats::statsg::sortm[][src]

pub fn sortm<T>(s: &[T], ascending: bool) -> Vec<T, Global> where
    T: PartialOrd<T> + 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.