# Make "sort" great again!

**URL:** <https://es.discourse.group/t/make-sort-great-again/2344>\
**Category:** 💡 Ideas\
**Created:** [April 14, 2025, 8:32am UTC](https://es.discourse.group/t/make-sort-great-again/2344 "2025-04-14T08:32:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aclaymore](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aclaymore/32/501_2.png) [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Post date:** [April 14, 2025, 10:49am UTC](https://es.discourse.group/t/make-sort-great-again/2344/2 "2025-04-14T10:49:11Z")

</div>

The default semantics of `Array.prototype.sort` can not be changed for existing inputs, as this would [break the web](https://github.com/tc39/faq?tab=readme-ov-file#why-dont-we-just-break-the-web).

Note: TypedArrays thankfully don't have this issue: [TypedArray.prototype.sort() - JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort)

The most likely 'fix' here is if there was perhaps a convenient sorting function available: [Builtin Ord / Compare method for primitives](https://es.discourse.group/t/builtin-ord-compare-method-for-primitives/724)

---

_[View the full topic](https://es.discourse.group/t/make-sort-great-again/2344)._
