![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Hash sorting with dates and 12 hour time format.by ramlight (Friar) |
on Sep 15, 2009 at 21:14 UTC ( #795478=note: print w/replies, xml ) | Need Help?? |
If you have control of the hash generation, then you might want consider reformatting the time used for the key to avoid this problem. That is likely to be far easier than trying to come up with some specialized sort functions.
If, on the other hand, you are stuck with the date format that is presented, you have a harder problem (which I will leave to someone who is more of an expert on sort than I.)
In Section
Seekers of Perl Wisdom
|
|