Custom Array Sort Algorithms in JavaScript
https://www.youtube.com/watch?v=-S8b_j5XBV0
JavaScript's Default Array Sort
JavaScript's Array.sort defaults to a String sort. This catches many people off guard when attempting to sort an Array of type Number.
// ❌ Default search is a String search
...
joel.net3 min read