Wondering: how far could we reuse the existing Hibernate API for sorting? Just a late night idea, didn't think it through yet but it seems worth linking the issues.