Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Numeric Sorting on Characters

by johngg (Canon)
on Aug 14, 2013 at 21:31 UTC ( [id://1049484]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -E '
    my $passes = {
    ...
    t2
    t5
    $
    
  2. or download this
       sort {
               $a->[ 1 ] <=> $b->[ 1 ]
               ||
               $a->[ 1 ] ? 0 : $a->[ 2 ] <=> $b->[ 2 ]
            }
    
  3. or download this
       sort {
               $a->[ 1 ] <=> $b->[ 1 ]
               ||
               ( $a->[ 1 ] ? 0 : $a->[ 2 ] <=> $b->[ 2 ] )
            }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-16 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found