Credo che dopo la SELECT basti un ORDER BY.