Skip to content

OrderedDict.sort #103202

@Gouvernathor

Description

@Gouvernathor

Feature or enhancement

Add an OrderedDict.sort method

Pitch

Enables to sort an (ordered)dict in-place, offering both better performance and single-object security when accessing the values in the sorted order - though the sorting is done key-wise.

Previous discussion

https://discuss.python.org/t/sorting-ordered-dicts/25336

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions