in reply to Sorting data returned from DBI ...
"Now I want to sort the table so that it is ordered by city, last name, first name instead of just by city."
So, just modify your SQL query to do exactly that....
my $sql ='SELECT city, last_name, first_name FROM employees ORDER BY c +ity, last_name, first_name';
Simple ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting data returned from DBI ...
by chinamox (Scribe) on Dec 10, 2006 at 07:13 UTC | |
by Devanchya (Beadle) on Dec 10, 2006 at 14:31 UTC |