File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ of sort algorithms like higher performance or lower memory overhead are often mo
20
20
desirable.
21
21
22
22
Having a performant, non-allocating unstable sort function in libcore would cover those
23
- needs. At the moment Rust is not offering a built-in alternative (only crates), which
23
+ needs. At the moment Rust is not offering this solution as a built-in (only crates), which
24
24
is unusual for a systems programming language.
25
25
26
26
** Q: What is stability?** <br >
@@ -54,6 +54,8 @@ A: Because stability is a good default. A programmer might call a sort function
54
54
without checking in the documentation whether it is stable or unstable. It is very
55
55
intuitive to assume stability, so having ` slice::sort ` perform unstable sorting might
56
56
cause unpleasant surprises.
57
+ See this [ story] ( https://medium.com/@cocotutch/a-swift-sorting-problem-e0ebfc4e46d4#.yfvsgjozx )
58
+ for an example.
57
59
58
60
** Q: Why does ` slice::sort ` allocate?** <br >
59
61
A: It is possible to implement a non-allocating stable sort, but it would be
You can’t perform that action at this time.
0 commit comments