Sorry, my bad. I was trying to rearrange the query Mantra had... OK, I double checked an old ASP script I wrote, and here is the basic syntax (just like php actually)
SELECT FROM table_name WHERE Field = Value ORDER BY Field
sqlQuery = "SELECT * FROM " _
& strMyTable _
& " WHERE " _
& strMyKey _
& "=" _
& lngRecord _
& " ORDER BY " _
& mykey _
& " ASC "
For example, here is how one of mine went:
$rsLOC = "SELECT * FROM location WHERE LocationID = " _
& Request("LocationID") _
& " ORDER BY LocationName ASC"
I hope something here is helpful to you.