Sort stability: Difference between revisions

no edit summary
No edit summary
Line 129:
=={{header|Clojure}}==
Clojure's ''sort'' and ''sort-by'' functions are implemented using Java's ''java.utils.Array.sort'' methods, which are guaranteed stable.
 
=={{header|COBOL}}==
The SORT statement causes a set of records or table elements to be arranged in a user-specified sequence.
 
If the DUPLICATES phrase is specified and the contents of all the key data items associated with one record or
table element are equal to the contents of the corresponding key data items associated with one or more other
records or table elements, the order of return of these records or the relative order of the contents of these
table elements is:
 
a) The order of the associated input files as specified in the SORT statement. Within a given input file the
order is that in which the records are accessed from that file.
 
b) The order in which these records are released by an input procedure, when an input procedure is specified.
 
c) The relative order of the contents of these table elements before sorting takes place.
 
=={{header|Common Lisp}}==