{
for (int i=0; i<ordering.length; i++)
{
state.put(candidateAlias, arg0);
Object a = ordering[i].evaluate(
new InMemoryExpressionEvaluator(query.getObjectManager().getOMFContext().getQueryManager(),
parameterValues, state, query.getParsedImports(), clr,
candidateAlias));
state.put(candidateAlias, arg1);
Object b = ordering[i].evaluate(
new InMemoryExpressionEvaluator(query.getObjectManager().getOMFContext().getQueryManager(),
parameterValues, state, query.getParsedImports(), clr,
candidateAlias));
int result = ((Comparable)a).compareTo(b);
if (result != 0)