I'm new to javascript. I know it's a weakly typed language which the sort function can sort all type of objects.
but when it sort a array like
> var a = [1, 43, 2, 09, 23]
< undefined
> a.sort()
< [1, 2, 23, 43, 9]
only by the first number? what's the zen of this design?
so if I wanna sort a pure list which only contain numbers(bigger than 9), I must write a call-back function to accomplish this?