Framework for dynamic orderable JPQL queries