News for hackers. Stuff that matters.
Re:The Curious Case of JavaScript’s `sort` by Klathmon on Wednesday April 13, 2016 @11:48AM (#11489205)
And just to throw another wrench in there, because it sorts by Unicode code points, capitals come before lowercase.

So this:

['Banana', 'cherry', 'bagel', 'apple'].sort()

Will produce this order:

["Banana", "apple", "bagel", "cherry"]

There are no comments on this comment yet.