test multiple sort query criteria