-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix Array.Sort in the presence of nulls #41234
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@svick Thank you!
All changes go to master. We backport from master as necessary. |
/backport to release/5.0 |
Started backporting to release/5.0: https://github.com/dotnet/runtime/actions/runs/221163831 |
Shoukd we have more test combinations, given this involves the complexity of pivots, etc? |
I added a tracking issue #41376 for adding more test combinations. |
*Added tests for sorting arrays *Separated tests for integer from string *Added comments for integers and strings
Fixes #41235.
This was introduced by https://github.com/dotnet/runtime/pull/35297/files#diff-54c667fe59347842036834f5b31c5411L513-R477. Notice that the first
while
loop stays== null
, but the second one incorrectly changes from!= null
to== null
.I think this is a fairly serious bug that should be fixed in 5.0, but as I understand it, master already targets 6.0. Should I rebase and retarget this PR to the release/5.0 branch?
cc: @stephentoub