Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Array Sorting

by ELISHEVA (Prior)
on Dec 14, 2010 at 12:03 UTC ( [id://877056]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @aRecords;
    my $iRecord=0;
    ...
    # index 1 (fields are numbered starting at 0)
    
    my @aSortedRecords = sort { $a->[1] <=> $b->[1] } @aRecords;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found