Help for this page

Select Code to Download


  1. or download this
        
    sub gSort { 
        ($a =~ /B(\d+)/)[0] <=> ($b =~ /B(\d+)/)[0] 
        or 
        ($a =~ /U(\d+)/)[0] <=> ($b =~ /U(\d+)/)[0] 
    }
    
  2. or download this
    {
        no warnings 'redefine';
        do "$path/Sort.cfg.pl";
    }             
    my @sorted = sort gSort @data;