in reply to Re: sorting a database table with primary keys
in thread sorting a database table with primary keys

thanks davidrw.
here $choices{$input} mean 1, 2, 3, 4 or 5 right?
  • Comment on Re^2: sorting a database table with primary keys

Replies are listed 'Best First'.
Re^3: sorting a database table with primary keys
by davidrw (Prior) on Apr 05, 2006 at 12:29 UTC
    yes .. sorry about that -- I originally had my %choices = (1 => bug_id, 2=>'owner', 3=>'subject', 4=>'status', 5=>'assigned' ); but broke it into %numSorts and %strSorts so that cmp/<=> could be used accordingly, and just didn't copy/paste all the way through...
    The code in my above reply has been updated ..