private SequenceIterator rawIterator(XPathContextMajor context) throws XPathException {
SequenceIterator iterator = expression.iterate(context);
if (sortKey != null) {
Expression key = sortKey.expression;
if (key.getItemType(config.getTypeHierarchy()) instanceof NodeTest) {
sortKey.expression = new Atomizer(key, config);
}
SortKeyDefinition sk = new SortKeyDefinition();
sk.setSortKey(sortKey.expression);
AtomicComparer comp = sk.makeComparator(context);