You can sort reverse. e.g. stdlib sort reverse name (look in the help under Database > Queries > sort)
Note: you can only reverse the entire sort. If you are sorting by multiple fields you can’t reverse just one of them.
To read in reverse order, you can do something like:
while false isnt x = q.Prev()