Yes, but you want cmp not <=>.
cmp is for ASCIIbetical sorting; <=> is for numeric sorting. (And Unicode::Collate is for proper, decent alphabetical sorting.)
In reply to Re^2: How to sort an array of hashes based on one of the values in the hash?
by tobyink
in thread How to sort an array of hashes based on one of the values in the hash?
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |