removed the order by asc for postgres