Sort stability: Difference between revisions

→‎{{header|Go}}: new function sort.Stable()
(added Julia example)
(→‎{{header|Go}}: new function sort.Stable())
Line 168:
 
=={{header|Go}}==
New to Go 1.2 is the function Stable() in the sort package and is documented to be a stable sort. Other sort functions are documented to have no guarantee of stability.
The sort package documentation makes no mention of stability. Inspection of the source shows multiple sort algorithms, including quicksort. Presumably then sorts are unstable.
 
=={{header|Groovy}}==
1,707

edits