Don't forget: [1,2,100,200].sort() // JS

2 points by residualmind ↗ HN
I had somehow completely forgotten (or suppressed) this behaviour in Javascript....

1 comment

[ 4.0 ms ] story [ 15.3 ms ] thread
Jajaja, 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...