13061307130813091310131113121313131413151316
public void testQuerySorting() { CaseInstanceQuery query = caseService.createCaseInstanceQuery(); // asc query .orderByCaseDefinitionId() .asc(); verifyQueryResults(query, 5); query = caseService.createCaseInstanceQuery();
13291330133113321333133413351336133713381339
// desc query = caseService.createCaseInstanceQuery(); query .orderByCaseDefinitionId() .desc(); verifyQueryResults(query, 5); query = caseService.createCaseInstanceQuery();