Hibernate Criteria - Order and Pagination
<p>I want to ask if Criteria <strong>setFirstResult</strong> and <strong>setMaxResults</strong> can interfere with the Order I'm applying before using both methods. I have noticed that when <strong>addingOrder</strong> on field, the results if any repeated by that field are sorted by id of the records. If I apply <strong>setFirstResult</strong>, <strong>setMaxResults</strong> on criteria after the Order, same results are sorted by on how they've been saved.</p>