Help for this page

Select Code to Download


  1. or download this
    @sorted = sort { substr($a, 7, 5) cmp substr($b, 7, 5) } @unsorted;
    
  2. or download this
    @sorted = 
       map { $_->[0] }
      sort { $a->[1] cmp $b->[1] }
       map { [ $_, substr($_, 7, 5) ] }
             @unsorted;