in reply to Re: How to sort an array of hashes based on one of the values in the hash?
in thread How to sort an array of hashes based on one of the values in the hash?
Yes, but you want cmp not <=>.
cmp is for ASCIIbetical sorting; <=> is for numeric sorting. (And Unicode::Collate is for proper, decent alphabetical sorting.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to sort an array of hashes based on one of the values in the hash?
by blue_cowdawg (Monsignor) on Mar 08, 2013 at 16:34 UTC |