lo puoi fare direttamente da sql:
select * from tabella
where quello_che_vuoi
order by campo_che_ti_interessa
alla fine puoi aggiungere asc (ascendente) o desc (discendente)