java.sql.ResultSet Interface

Do not assume any implicit ordering of result set rows. If you require ordering, use an ORDER BY clause.