4 ms·Well, what would be the expected behavior of sorting an untyped array?by clktmr 6y agoWell, what would be the expected behavior of sorting an untyped array?jlokier 6y agoUsing 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..