There are of course multiple ways to achieve this goal.
Disregarding the Relation Algebra part and going to "What works in the real world" which is more important to me, the answer is something akin to:
Code:
SELECT *
FROM myTable
ORDER BY CASE
WHEN A then 1
WHEN B then 2
WHEN C then 3
WHEN D then 4
END
This uses the behavior of SQL to produce the results you want with a single pass through the data and it eliminates most of the pointless evaluations of the criteria.
-PatP