Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If they are coming in in the order that you need them, consider Tie::IxHash to keep the hash keys in the order of assignment.
Or, just have an array with the 12 months in it, and use that rather than sorting the keys. Skip over the elements that don't exist. -- Randal L. Schwartz, Perl hacker
In reply to •Re: Sorting hash keys according to different criteria
by merlyn
|
|