# Proposal idea: descending sort

**URL:** <https://es.discourse.group/t/proposal-idea-descending-sort/889>\
**Category:** 🦋 Proposals\
**Created:** [July 26, 2021, 9:02pm UTC](https://es.discourse.group/t/proposal-idea-descending-sort/889 "2021-07-26T21:02:50Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![tabatkins](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/tabatkins/32/170_2.png) [@tabatkins](https://es.discourse.group/u/tabatkins)\
**Post date:** [December 6, 2024, 11:14pm UTC](https://es.discourse.group/t/proposal-idea-descending-sort/889/9 "2024-12-06T23:14:24Z")

</div>

A `Compare` namespace would be great for a few other things too, like being able to chain comparisons for tie-breaking, or compare arrays lexicographically, or use a key function on the comparator. I've written that code a few times; it's small and easy, but would be nice to have pre-supplied.

---

_[View the full topic](https://es.discourse.group/t/proposal-idea-descending-sort/889)._
