SortKeyDefinition sk = new SortKeyDefinition();
sk.setSortKey(sortKey.expression);
AtomicComparer comp = sk.makeComparator(context);
AtomicComparer[] comps = {comp};
iterator = new SortedIterator(context, iterator, this, comps);
((SortedIterator)iterator).setHostLanguage(Configuration.XPATH);
}
return iterator;
}