Added order to the sql statement.