Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Double Sort Rephrased

by mkmcconn (Chaplain)
on Jul 22, 2002 at 22:58 UTC ( [id://184278]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    1 9 b
    6 8 a
    
  2. or download this
    my @sorted = map {$_->[0]} sort {
        $a->[3] cmp $b->[3] || # sorted ascending alpha on col 3
    ...
    } map {[ $_ ,/(\w+)\s+(\w+)\s+(\w+)/]} <DATA>   ;
    
    print  for @sorted;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-16 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found