@@ -37,8 +37,8 @@ extension Sequence where Element: Comparable {
37
37
/// print(descendingStudents)
38
38
/// // Prints "["Peter", "Kweku", "Kofi", "Akosua", "Abena"]"
39
39
///
40
- /// The sorting algorithm is not guaranteed to be stable. A stable sort
41
- /// preserves the relative order of elements that compare equal.
40
+ /// The sorting algorithm is guaranteed to be stable. A stable sort
41
+ /// preserves the relative order of elements that compare as equal.
42
42
///
43
43
/// - Returns: A sorted array of the sequence's elements.
44
44
///
@@ -117,7 +117,7 @@ extension Sequence {
117
117
/// and `c` are incomparable, then `a` and `c` are also incomparable.
118
118
/// (Transitive incomparability)
119
119
///
120
- /// The sorting algorithm is not guaranteed to be stable. A stable sort
120
+ /// The sorting algorithm is guaranteed to be stable. A stable sort
121
121
/// preserves the relative order of elements for which
122
122
/// `areInIncreasingOrder` does not establish an order.
123
123
///
@@ -162,8 +162,8 @@ where Self: RandomAccessCollection, Element: Comparable {
162
162
/// print(students)
163
163
/// // Prints "["Peter", "Kweku", "Kofi", "Akosua", "Abena"]"
164
164
///
165
- /// The sorting algorithm is not guaranteed to be stable. A stable sort
166
- /// preserves the relative order of elements that compare equal.
165
+ /// The sorting algorithm is guaranteed to be stable. A stable sort
166
+ /// preserves the relative order of elements that compare as equal.
167
167
///
168
168
/// - Complexity: O(*n* log *n*), where *n* is the length of the collection.
169
169
@inlinable
@@ -231,7 +231,7 @@ extension MutableCollection where Self: RandomAccessCollection {
231
231
/// and `c` are incomparable, then `a` and `c` are also incomparable.
232
232
/// (Transitive incomparability)
233
233
///
234
- /// The sorting algorithm is not guaranteed to be stable. A stable sort
234
+ /// The sorting algorithm is guaranteed to be stable. A stable sort
235
235
/// preserves the relative order of elements for which
236
236
/// `areInIncreasingOrder` does not establish an order.
237
237
///
0 commit comments