ISPN-2821 Correct Query Sort tests


https://issues.jboss.org/browse/ISPN-2821