Gossamer Forum
Home : General : Perl Programming :

Sorting 'mutlidimensional' array

Quote Reply
Sorting 'mutlidimensional' array
Any help on this one would be great!

I need to be able to sort an array of lists by specific columns.

For example, I need to sort @data by: $data[][$cols{FIRSTNAME}], $data[][$cols{LASTNAME}], $data[][$cols{ADDRESS}], etc where $cols is a hash pointing me to the correct column index in @data. Everything I have found with regards to sort is only on simple arrays....

Thanks for your help!
Subject Author Views Date
Thread Sorting 'mutlidimensional' array Wetzerk 3653 Jan 19, 2004, 8:22 AM
Post Re: [Wetzerk] Sorting 'mutlidimensional' array
Chaz 3505 Jan 20, 2004, 4:39 PM