tsk1979 has asked for the wisdom of the Perl Monks concerning the following question:
So lets say in a text report I am printing it as followsAA01 => ALPHA = 453 OMEGA = 43 COUNT = 44 GF02 => ALPHA = 445 OMEGA = 4311 COUNT = 444 ...
Now the user wants that they should be able to choose the way the report is sorted. If I useGROUP COUNT ALPHA OMEGA AA01 44 453 43 GF02 444 445 4311 .... ...
I can sort by the group name. Now what if I want to print the report sorted by COUNT, or ALPHA etc.,sort keys { $a <=> $b} %hash
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Some advice regaring sorting and hashes
by JavaFan (Canon) on Jun 08, 2009 at 11:53 UTC | |
|
Re: Some advice regaring sorting and hashes
by targetsmart (Curate) on Jun 08, 2009 at 11:55 UTC | |
|
Re: Some advice regaring sorting and hashes
by markkawika (Monk) on Jun 08, 2009 at 23:51 UTC |