Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: a proper sort

by eieio (Pilgrim)
on Mar 04, 2005 at 14:56 UTC ( [id://436586]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @pretty = sort
    {
    ...
             ( $a[1] && $b[1] && $a[1] <=> $b[1] ) ||
             ( $a[1] && 1 ) || ( $b[1] && -1 );
    } @not_so_pretty;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found