What is the difference between sorted and ordered collection in hibernate?
The sorted collection is a collection that is sorted using the Java collections framework. The sorting is done in the memory of JVM that is running hibernate, soon after reading the data from the database using Java Comparator The less the collection the more the efficient of sorting
The order collections will also sorts a collection by using the order by clause for the results fetched.
The more the collection, the more efficient of sorting.