Help for this page

Select Code to Download


  1. or download this
    @sorted = 
        sort { int($a->{SP}/100)*100 <=> int($b->{SP}/100)*100 }
        @unsorted;
    
  2. or download this
    @sorted_refs =
        map { $_->[1] }
        sort { $a->[0] <=> $b->[0] }
        map { [ int($_->{SP}/100)*100, $_] }
        @unsorted_refs;
    
  3. or download this
    @sorted_refs =
        map { $_->[2] }
        sort { $a->[0] <=> $b->[0] || $a->[1] <=> $b->[1] }
        map { [ int($_->{SP}/100)*100, DateToTmStr($_->{SaleDate}), $_] }
        @unsorted_refs;