in reply to PERL CGI Newbie Question
What do you want to sort by name? Your code does not create anything to be sorted...
Anyway, you can sort the results of an SQL Query using SQL's 'ORDER BY'.