}
nodeKeys = new Object[allocated * recordSize];
count = 0;
XPathContextMajor c2 = context.newContext();
c2.setCurrentIterator(base);
c2.setOrigin(origin);
c2.setCurrentGroupIterator((GroupIterator)base);
// this provides the context for evaluating the sort key
// initialise the array with data
while (true) {