Skip to content

Commit 9c9ca3f

Browse files
authored
Assign as SE-0372 and begin review
1 parent 3adb955 commit 9c9ca3f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

proposals/0000-stable-sort.md renamed to proposals/0372-document-sorting-as-stable.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Document Sorting as Stable
22

3-
* Proposal: [SE-NNNN](0000-stable-sort.md)
3+
* Proposal: [SE-0372](0372-document-sorting-as-stable.md)
44
* Author: [Nate Cook](https://github.com/natecook1000)
5-
* Review Manager: TBD
6-
* Status: **Awaiting review**
5+
* Review Manager: [Tony Allevato](https://github.com/allevato)
6+
* Status: **Active review (September 7, 2022...September 20, 2022)**
77
* Implementation: [apple/swift PR #60936](https://github.com/apple/swift/pull/60936)
8+
* Review: ([pitch](https://forums.swift.org/t/pitch-document-sorting-as-stable/59880))
89

910
## Introduction
1011

1112
Swift's sorting algorithm was changed to be stable before Swift 5, but we've never updated the documentation to provide that guarantee. Let's commit to the sorting algorithm being stable so that people can rely on that behavior.
1213

13-
Swift-evolution thread: [Pitch](https://forums.swift.org/t/pitch-document-sorting-as-stable/59880)
14-
1514
## Motivation
1615

1716
A *stable sort* is a sort that keeps the original relative order for any elements that compare as equal or unordered. For example, given this list of players that are already sorted by last name, a sort by first name preserves the original order of the two players named "Ashley":

0 commit comments

Comments
 (0)