reorder columns
pg group by