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],
In reply to Re^2: More Sorted Business with Hashes
by Aristotle
in thread More Sorted Business with Hashes
by Spenser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |