in reply to sorting on multiple columns using Data::Table?

In fact, what I have is a multi-dim database which I'd like to sort by several fields. Is there a Perl module for sorting databases by multiple fields? Thanks.
  • Comment on Re: sorting on multiple columns using Data::Table?

Replies are listed 'Best First'.
Re^2: sorting on multiple columns using Data::Table?
by apl (Monsignor) on Feb 25, 2008 at 20:50 UTC
    Perhaps you should start by listing the various fields in the record, which you wish to sort on, which are unique, etc.

    Or, if there ar enough records, you could consider sticking the information in a Sybase table, and let it worry about the sorting.

Re^2: sorting on multiple columns using Data::Table?
by salva (Canon) on Feb 26, 2008 at 12:25 UTC
    The best way to sort data from a database is to let the database do the sorting.

    Anyway, there are several modules from CPAN that allow to create multifield sorters on the fly as for instance Sort::Key/Sort::Key::Maker and Sort::Maker.