You can use the ORDER BY clause to sort the query result. Each expression in the ORDER BY clause consists of column names or sequence numbers (starting from 1) of columns.

[ ORDER BY expression
[ ASC | DESC ]
[ NULLS FIRST | NULLS LAST ]  
[ LIMIT { count | ALL } ]