Note that to sort descending for one column, just swap $a and $b in the comparison expression, for that column.@sorted = sort { $a->{key2} cmp $b->{key2} || $a->{num1} <=> $b->{num1} || $a->{key3} cmp $b->{key3} || } @data;
In reply to Re^2: MsExcel like Multi Column Sorting
by bart
in thread MsExcel like Multi Column Sorting
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |