[API Review] Sorted Collections

We also discussed this in the PriorityQueue review:

No comparator is still my preference for the sorted collections, as it's consistent with the existing types in the stdlib and the rest of the collections package.

This is what I'd recommend.

Part of my thinking is that if we keep everything consistent, it improves the likelihood we can identify a language feature that addresses this and applies equally well to all collections. For example, imagine something like a macro that synthesizes the boxes on your behalf:

Equal(person, by: \.name)
Compare(person, by: \.name)
Hash(person, by: \.name)
3 Likes