Doc: The default sorting alg. is stable from 1.9#47579
Doc: The default sorting alg. is stable from 1.9#47579LilithHafner merged 16 commits intoJuliaLang:masterfrom
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. |
LilithHafner
left a comment
There was a problem hiding this comment.
Sorry, thanks for the bump! I had this review lying around but hadn't submitted it.
Co-authored-by: Lilith Orion Hafner <lilithhafner@gmail.com>
|
@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. |
LilithHafner
left a comment
There was a problem hiding this comment.
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.
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 <lilithhafner@gmail.com> (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 <lilithhafner@gmail.com> (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