4 ms·
Don't forget: [1,2,100,200].sort() // JS
I had somehow completely forgotten (or suppressed) this behaviour in Javascript....
- AquiGorka 9y agoJajaja, yeah, the other day I was helping out a newcomer and we came into this and had to explain how it is different if you compare Numbers vs Strings...