4 ms·
Using whatever the built-in '<' operator does would be more natural than converting to strings just for sort().
by jlokier 6y ago
Using whatever the built-in '<' operator does would be more natural than converting to strings just for sort().
- clktmr 6y agoI bet not! 1 > {} // false 1 < {} // false So the result of sorting will be random. People are fast to complain..