290. Descending order is a key, desc(x); sort/sorted lose desc: Bool (2026-11-22)
- Decision. One spelling:
xs.sorted(by: x => desc(x)), and mixed orders likeby: c => (c.start, desc(c.end)). Decided by its recommendation under Ryan's rule that reversible calls are ours.std-seq/sort-sorted-last.cpnow uses the key; stdlib drops the flag fromspec/std/seq.cp. - Why. Chapter 7 already says descending is a key; a flag can't express
mixed orders, and 9 of the 100 hill-climb
spec.cpfiles usedesc(), none the flag. - Reverse. Re-add
desc: Bool = falsetosortandsorted.