Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: (Date::Manip) Re: sorting mm/dd/yy

by merlyn (Sage)
on Dec 15, 2000 at 04:13 UTC ( #46762=note: print w/replies, xml ) Need Help??


in reply to (Date::Manip) Re: sorting mm/dd/yy
in thread sorting mm/dd/yy

That'd be incredibly expensive for more than a few dates though. So, if you have, say, more than 5 or 10 dates, then Use The Power Of The Schwartz:
my @sorted_dates = map $_->[0], sort { Date_Cmp($a->[1], $b->[1]) } map [$_, ParseDate($_)], @dates;

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://46762]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2021-01-16 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?