On Thu, 30 Jan 2003 16:32:04 +0000, Paul Kraus wrote:

> I am dumping rows of an array into an excel file. I would like those
> rows to be sorted. If I wanted them to be sorted by the first elements
> how would I do it?
> 
> Code
> ----

I haven't looked to your code,
but sorting a 2 dim array for the first (numeric) element 
in the second dim can be done via:

my @sorted_array = sort {$a->[0] <=> $b->[0]} @array;


Best Wishes,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to