Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2014-09-23 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (239 votes), past polls