Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: a proper sort

by eieio (Pilgrim)
on Mar 04, 2005 at 14:56 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-09-26 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?