My guess is MS Access.
In your SQL query, you'll want to use the order by clause.
Like this:
Dim sSQL
sSQL = sSQL & "select MyColumnA,MyColumnB "
sSQL = sSQL & " from MyTable "
sSQL = sSQL & " Where MyColumnA = 1 "
sSQL = sSQL & " order by MyColumnA DESC"
oADORec.Open sSQL
This is just the basics. Replace the fake column and table
names with your own. The Where clause should also be
replaced with your own conditions. DESC and ASC are ORDER
BY options for sort order.