-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Doc: The default sorting alg. is stable from 1.9 #47579
Conversation
@LilithHafner Thanks for your work on sorting!
I know that, not worried, still might introsort variant be better; it avoids that? Might it be faster (with or without randomization)? |
@PallHaraldsson Related discussion is here #45222 (comment) |
@LilithHafner Can you please check the wording because it would be nice to merge this docs (and backport it) before 1.9 is out. |
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.
Sorry, thanks for the bump! I had this review lying around but hadn't submitted it.
Co-authored-by: Lilith Orion Hafner <[email protected]>
@LilithHafner Thank you for the comments. I've resolved them + I've removed comments about v1.9 (7a66f76) as it is already noted in Therefore, it seems ready from my side. |
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.
I fixed a couple of typos and tweaked some wording. If it still looks good to you, I'm ready to merge.
map(x->issorted(x[k2]), (s, ps, qs)) # => (true, false, true) | ||
s[1:k] == ps[1:k] # => true | ||
s[k2] == qs[k2] # => true | ||
```jldoctest |
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.
Thanks for making this a doctest!
@LilithHafner Thanks for the changes. I've removed |
Agreed. "" > "appear to be stable" > "appear to be fast" |
Thanks! |
* Update doc/src/base/sort.md * Update docs: The default sorting alg. is stable * Compat 1.9 for QuickSort to be stable * Specify the default algorithm * Use example from InlineStrings.jl * Change example to jldoctest * Remove "*appear* to be stable." as slightly misleading. Co-authored-by: Lilith Orion Hafner <[email protected]> (cherry picked from commit c5fe17b)
* Update doc/src/base/sort.md * Update docs: The default sorting alg. is stable * Compat 1.9 for QuickSort to be stable * Specify the default algorithm * Use example from InlineStrings.jl * Change example to jldoctest * Remove "*appear* to be stable." as slightly misleading. Co-authored-by: Lilith Orion Hafner <[email protected]> (cherry picked from commit c5fe17b)
This PR updates the docs after #45222 and resolves my comments from #47297 (comment)
Notice
PartialQuickSort(::Integer)
is about to be deprecated in #47297, and thus the documentation is removed as well.Cc: @LilithHafner
Also relates to #47304