3 ms·
>JavaScript is horrible. >> [5, 10, 1].sort(); >> [ 1, 10, 5 ] Treat .sort() without a sorting function as undefined behavior. Voilà.
by warfangle 13y ago
>JavaScript is horrible.
>> [5, 10, 1].sort();
>> [ 1, 10, 5 ]
Treat .sort() without a sorting function as undefined behavior. Voilà.