Anonymous user
Sort stability: Difference between revisions
m
→{{header|Ruby}}: Use correct list of methods.
(→{{header|Ruby}}: Distinguish JRuby from MRI.) |
m (→{{header|Ruby}}: Use correct list of methods.) |
||
Line 558:
=={{header|Ruby}}==
Ruby's built-in sort methods (Array#sort, Array#sort!, Array#sort_by!, Enumerable#sort and Enumerable#sort_by) are not stable. [[MRI]] uses [[Sorting algorithms/Quicksort|quicksort]], which is not stable [http://groups.google.com/group/comp.lang.ruby/msg/2a6c50d173a902da
{{works with|MRI|1.8.7, 1.9.2}}
|