pub fn sort_float<T: Float>(slice: &mut [T])Expand description
Total ordering for f32/f64 as per IEEE 754
- NaN sorts greater than all numbers, including +inf.
- -0.0 and +0.0 are distinct (we can change in future if needed - to filter first).
- Preserves all edge case ordering.