Skip to content

Commit 3961f83

Browse files
jafingerhutstuarthalloway
authored andcommitted
CLJ-1414: sort and sort-by promise stable sort in their doc strings
Signed-off-by: Stuart Halloway <stu@cognitect.com>
1 parent fd50af1 commit 3961f83

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/clj/clojure/core.clj

+6-4
Original file line numberDiff line numberDiff line change
@@ -2986,8 +2986,9 @@
29862986
(defn sort
29872987
"Returns a sorted sequence of the items in coll. If no comparator is
29882988
supplied, uses compare. comparator must implement
2989-
java.util.Comparator. If coll is a Java array, it will be modified.
2990-
To avoid this, sort a copy of the array."
2989+
java.util.Comparator. Guaranteed to be stable: equal elements will
2990+
not be reordered. If coll is a Java array, it will be modified. To
2991+
avoid this, sort a copy of the array."
29912992
{:added "1.0"
29922993
:static true}
29932994
([coll]
@@ -3003,8 +3004,9 @@
30033004
"Returns a sorted sequence of the items in coll, where the sort
30043005
order is determined by comparing (keyfn item). If no comparator is
30053006
supplied, uses compare. comparator must implement
3006-
java.util.Comparator. If coll is a Java array, it will be modified.
3007-
To avoid this, sort a copy of the array."
3007+
java.util.Comparator. Guaranteed to be stable: equal elements will
3008+
not be reordered. If coll is a Java array, it will be modified. To
3009+
avoid this, sort a copy of the array."
30083010
{:added "1.0"
30093011
:static true}
30103012
([keyfn coll]

0 commit comments

Comments
 (0)