Unisci tutto in una select * from (tua query) order by...