Skip to main content

crt_qsort_less

Function crt_qsort_less 

Source
pub fn crt_qsort_less<T>(a: &mut [T], less: impl Fn(&T, &T) -> bool)
Expand description

The Microsoft C runtime’s qsort with a less comparator, as the game’s templated copies use it: the same algorithm as crt_qsort_by, with cmp(a, b) > 0 being less(b, a) and equality neither way.

Original: FUN_14002c9d0, FUN_140030c00, FUN_1400220f0, FUN_14001f120, FUN_140015c10, FUN_140015f10, FUN_140016ce0, FUN_140016fe0.