Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: sort timestamps with associated names.

by salva (Monsignor)
on Jul 26, 2013 at 08:43 UTC ( #1046466=note: print w/ replies, xml ) Need Help??


in reply to sort timestamps with associated names.

Your data seems to use fixed length records, so you can just use substr to extract the timestamp fragment:

my @sorted = sort { substr($a, 10) cmp substr($b, 10) } @data;


Comment on Re: sort timestamps with associated names.
Select or Download Code
Re^2: sort timestamps with associated names.
by Sparky (Initiate) on Jul 30, 2013 at 03:15 UTC
    Thank you to all that replied. The suggestions helped.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (18)
As of 2014-07-11 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (229 votes), past polls