Help for this page

Select Code to Download


  1. or download this
        @sorted_array=  map { $_->[0] } 
                        sort { $numeric ? $b->[1] <=> $a->[1] : $b->[1] cm
    +p $a->[1]} 
                        map { [ $_, (split " ", $_)[$col_2sort] } @unsorte
    +d_array;
    
  2. or download this
        @sorted_array=  map { $_->[0] } 
                        sort { $b->[1] <=> $a->[1] ||  $b->[1] cmp $a->[1]
    +} 
                        map { [ $_, (split " ", $_)[$col_2sort] } @unsorte
    +d_array;
    
  3. or download this
    $ perl -e 'print 3 <=> "b"'
    1
     ~
    $ perl -e 'print 3 cmp "b"'
    -1