4 points
Honestly this being javascript I expected the answer to be
[4, 1, 100000, 30, 21]
(sorted alphabetically by name)
1 point
As many people have pointed out already, this happens because JavaScript was rushed. But why do we still use a language whose foundation was built in only ten days(!) for scripting on webpages we build today? Why hasn’t there been a push for web browsers to support other scripting languages (other than maybe Dart)?
2 points
1 point
sort -n
21 points
JavaScript was made in 2 days through a drunken stupor, and it shows.
26 points
Because everyone means “alphabetize” when sorting numbers.