Tracking Issue for sort_floats (original) (raw)
Feature gate: #![feature(sort_floats)]
This is a tracking issue for the sort_floats method on [f32] and [f64], a convenience method to sort a slice of floats by calling sort_unstable_by using total_cmp.
Public API
impl [f32] { pub fn sort_floats(&mut self); }
impl [f64] { pub fn sort_floats(&mut self); }
Steps / History
- Implementation: Add [f32]::sort_floats and [f64]::sort_floats #93397
- Final comment period (FCP)
- Stabilization PR
Open questions
- Should we rename this to
sort, which would require some additional steps (possibly negative impls forOrdonf32andf64) to avoid a name conflict?