Skip to content

Tracking Issue for sort_floats #93396

Open
@joshtriplett

Description

@joshtriplett

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

Open questions

  • Should we rename this to sort, which would require some additional steps (possibly negative impls for Ord on f32 and f64) to avoid a name conflict?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions