Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add a stable sorting algorithm to the base library (eg timsort or rust-style) #67546

Closed
coderb opened this issue Apr 4, 2022 · 3 comments

Comments

@coderb
Copy link

coderb commented Apr 4, 2022

There is no stable sorting algorithm the current dotnet core base libraries.

Stable sorting algorithms maintain the relative order of records with equal keys.

Other languages have built in support for this:
python - timsort
java - timsort
rust - timsort variant ( rust-lang/rust#38192 ).

I would propose a port of either java timsort or rust's enhanced algorithm.

Not only are they stable, they are highly performant.

@mairaw mairaw transferred this issue from dotnet/core Apr 4, 2022
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Apr 4, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@gfoidl
Copy link
Member

gfoidl commented Apr 4, 2022

See e.g. #60982 for a similar request.

@teo-tsirpanis
Copy link
Contributor

Closing as duplicate.

@ghost ghost locked as resolved and limited conversation to collaborators May 5, 2022
@jeffhandley jeffhandley removed the untriaged New issue has not been triaged by the area owner label May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants