Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Sorting in Perl

by dasgar (Priest)
on Oct 15, 2015 at 04:08 UTC ( [id://1144929]=note: print w/replies, xml ) Need Help??


in reply to Sorting in Perl

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144929]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found