#sorting
Read more stories on Hashnode
Articles with this tag
Typical use-cases and rare edge-cases ยท JavaScript arrays have a builtin sort method, which mostly does what you expect: [1, 4, 2, 3].sort(); // [1, 2,...