Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Custom Sort An AoA

by LanX (Saint)
on Apr 01, 2014 at 18:42 UTC ( [id://1080624]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub cmp_vec  {
       # return either -1,0 or 1 comparing over two equally sized arrays
    ...
    
    
    sort { @$a <=> @$b or cmp_vec($a,$b) } @list;
    
  2. or download this
    sub cmp_vec {
     my ($a,$b) = @_;
    ...
      }
      return 0;
    ]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-23 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found