Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Custom Sort An AoA

by Limbic~Region (Chancellor)
on Apr 01, 2014 at 16:04 UTC ( [id://1080594]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @list = sort {@$a <=> @$b} @list;
    
  2. or download this
    ['blah', 'asdf', 'foo', 'bar'],
    ['two'],
    ...
    ['one'],
    ['mmm', 'def', 'ghi'],
    ['qqq', 'xyz', 'aaa']
    
  3. or download this
    ['one'],
    ['two'],
    ...
    ['mmm', 'def', 'ghi'],
    ['zzz', 'def', 'ghi'],
    ['blah', 'asdf', 'foo', 'bar'],
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1080594]
Approved by davido
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-28 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found