We don't bite newbies here... much | |
PerlMonks |
Re: Sorting in Perlby dasgar (Priest) |
on Oct 15, 2015 at 04:08 UTC ( [id://1144929]=note: print w/replies, xml ) | Need Help?? |
If you would like to use a module to do this, you can check out Data::Table. It provides a function that lets you sort by one or more column and use different sort orders for each column. Alternatively, you may prefer to write your own code to do the sorting. You can check out How to sort array by columns maintaining the rows? (for C style arrays) for some suggestions on how to write your own code. I've used both of the above methods to accomplish the task that you are trying to do.
In Section
Seekers of Perl Wisdom
|
|