The result lists of both queries are equal. I debugged into JPAIdentityStore.fetchQueryResults(...) and saw, that the sort parameters will not be read. The method orderBy of CriteriaQuery will not be called.
The FileIdentityStore.fetchQueryResults(...) uses the FileSortingComparator to sort the result. I can use it too, but it is better to use the jpa means.