Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Javascript returns [1,2,3,a]. What's the problem.


    > [1,2,"10",3].sort()
    [ 1, '10', 2, 3 ]
That's the problem.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: