in reply to Re^2: sort hash by value
in thread sort hash by value
The OP alludes to the fact that the hash values are numbers while the keys are strings. He will want to use '<=>' rather than 'cmp' to sort the number values properly.
mr greywolf
mr greywolf
|
---|
In Section
Seekers of Perl Wisdom