When working with arrays in JavaScript, one of the most commonly used methods is sort(). By default, sort() converts everything to strings and compares their Unicode values, which often isn’t what we ...