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

Re: reverse sort arrays in subroutines

by davido (Archbishop)
on May 21, 2013 at 21:39 UTC ( #1034612=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @SortedArray = sort { $b cmp $a } @PassedArray;
    
  2. or download this
    my @SortedArray = reverse sort @PassedArray;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2014-11-01 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (229 votes), past polls