So I came across this weird sorting bug in JS when this sequence is sorted:
console.log([10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 9].sort());
which outputs
[10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 9]
so I tried a few other cases where the last 9 was 0 - 8. The sorting works as expected for both 0 and 1, but for numbers between 2 - 9, the sequence is not sorted.
[0, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]
[10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 5]
Behavior is same on Firefox and Chrome
I didn't know where else to go so I though I'd share here.