How to sort arrays reliably in TypeScript
Let's say you have an array of numbers and need to sort them; it's easy to just call .sort() and be on your way, like this:
const numbers = [10, 25, 2, 4, 1, 100, 6]
numbers.sort()
You would probably assume that since the values are numbers, it wou...
webdev.tips4 min read