Function extra::sort::quick_sort3

pub fn quick_sort3<T: std::clone::Clone + std::cmp::Ord + std::cmp::Eq>(arr: &mut [T])

Fancy quicksort. Sorts a mut vector in place.

Based on algorithm presented by ~Sedgewick and Bentley. According to these slides this is the algorithm of choice for 'randomly ordered keys, abstract compare' & 'small number of key values'.

This is an unstable sort.