in reply to
Sorting and Grouping with two different fields
This has nothing to do with Perl... but you can use ORDER BY - you just order by State, ID.
Comment on
Re: Sorting and Grouping with two different fields
In Section
Seekers of Perl Wisdom