fabius has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to sort an array (actually it's a table),
I mean something like that:
$events [][][][] its a matrix n x 4, and I want to sort it by third column i.e.,
I tried with Sort_Table() but it doesn't seem working.
$events [][][][] its a matrix n x 4, and I want to sort it by third column i.e.,
I tried with Sort_Table() but it doesn't seem working.
Does anybody know how can I do that?????@events = Sort_Table( cols => '4', field => '3', sorting => 'descending', structure => 'single', # I tried whith csv too #separator => '\*', data => \@events, );<
Edit: BazB added code tags (again).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sort array
by hardburn (Abbot) on Nov 26, 2003 at 14:54 UTC | |
Re: sort array
by BazB (Priest) on Nov 26, 2003 at 13:48 UTC | |
by eduardo (Curate) on Nov 26, 2003 at 15:45 UTC | |
by fabius (Initiate) on Nov 26, 2003 at 15:43 UTC |
Back to
Seekers of Perl Wisdom