If you are doing a select on this data, just use an ORDER BY in your select statement like this:
$result = @("SELECT * from <table name> ORDER BY lastname, firstname ");
You can also add "DESC" or "ASC" at the end of the statement to sort ascending (the default), or descending.
Take Care,
John Cornett
Senior Development Engineer
Web Teks, Inc.
http://www.web-teks.com
E-Mail: john@web-teks.com