in reply to Re^2: sorting CSV files
in thread sorting CSV files
What hash? There's no hash there, just references to arrays. You can always do a secondary sort:
That construct will sort first by second col and then by the third col.foreach my $row ( sort { $a->[1] <=> $b->[1] || $a->[2] <=> $b->[2] } +@$sheet ) {
|
|---|