in reply to Re: More Sorted Business with Hashes
in thread More Sorted Business with Hashes
Note the use of cmp (which sorts alphanumerically) rather than <=> (which sorts numerically). Because Spenser has non-numerals as hash values, <=> will produce seemingly unsorted results.-values=> [sort{$clients{$a} cmp $clients{$b}}keys %clients],
|
|---|