I would like to be able to continue to sort on count but then after count I would like to sort on type since I have many types and they may have the same count numbers. Any ideas? Thanks in advance!!foreach $junk (sort {$b->{'count'} cmp $a->{'count'}} @data) { print "$junk->{'count'} --> $junk->{'type'} --> $junk->{'a_point'} + --> $junk->{'z_point'} --> $junk->{'error'}\n"; }
In reply to how do I sort on two fields in a hash table? by vonman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |