Javascript, The Bad Parts #4: `sort` broken by default 😿

A REPL snippet’s worth a thousand words:

> [9,10,11].sort()
[ 10, 11, 9 ]

The thousand-and-first word is: unconscionable!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *