bug fixes to querydsl sorting