> [1, 2, 10, 20, 100, 200].sort()
[ 1, 10, 100, 2, 20, 200 ]
Why it's happening?
It seems what the array sort cannot be used for sorting numeric arrays directly? Yep. That's how it is defined in the specification: es5.github.io/#x188.8.131.52.