
What is the difference between sorted and ordered collection in hibernate?

Hi Samar,
A sorted collection is sorted in-memory using java comparator while order collection is ordered at the database level using order by clause.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.