pub fn sort<T>(
data: &mut [T],
cmp: impl FnMut(&T, &T) -> Ordering,
) -> Result<(), ResourceError>Expand description
Stable ordering with explicitly fallible index storage instead of hidden allocator-owned sort scratch. Ties preserve the original input order.