basta aggiungere una ... ORDER BY campo_di_riordinamento ... nella SELECT per ottenere quello che vuoi