Hacker News new | ask | show | jobs
by asdf-asdf-asdf 2119 days ago
unfortunately it's not possible to change the behavior because of backward compatibility.

maybe we could have a `sort2()` method that works differently.

2 comments

Yes, this would be the standard JavaScript approach to this kind of problem. See ===, "let", backtick-strings, Map, and most recently, Temporal.
`actuallySort()`