dev.to
/2 weeks ago
The Array.sort() Bug Only Numbers Above 9 Trigger
Array.sort() with no compare function sorted [11, 22, 110] as [11, 110, 22] in my test A 20-item array of multiples of 11 came back with 9 of them out of numeric order A random 10,...