I am experiencing a problem with order by in a JPA-query. The query is trivial and behaves as expected in an sql-client. The problem is the swedish characters å, ä and ö (should be in that order). When running the query through JPA (Hibernate) å and ä are in the wrong order (ä,å,ö).
There is no difference between Oracle and HslqDB and no difference between my local Windows PC and a Linux machine in the test environment.
I have tried a standard JPA-query, native JPA-query, native Hibernate query and the Hibernate criteria API. The order is wrong in all cases.
Any ideas?