Fixed up sorting in HQL query builder