in reply to Sorting by column
@array = sort { my @cols_a = split /\s/, $a; my @cols_b = split /\s/, $b; $cols_a[1] cmp $cols_b[1] || $cols_a[2] cmp $cols_b[2] } @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting by column
by DrHyde (Prior) on Sep 16, 2009 at 09:48 UTC |