Tracking Issue for sort_floats · Issue #93396 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
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 forOrd
onf32
andf64
) to avoid a name conflict?