Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Sorting dates with the Schwartzian Transform

by FunkyMonk (Canon)
on Aug 03, 2011 at 16:20 UTC ( #918321=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print for map  { $_->[0] }             # extract original date
              sort { $a->[1] cmp $b->[1] } # Sort, using sortable date
    ...
    01-01-2006
    03-03-2009
    02-02-2009
    
  2. or download this
    01-01-2006
    02-02-2007
    02-02-2009
    03-03-2009
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://918321]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-12-06 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.