//NTF if the DocumentList was sorted, then we need to use a regular DocumentIterator that will
//walk the noteid array, because the order matters.
//If it's not sorted (ie: the original DocumentCollection was not sorted) then we merge the noteids into
//a new DocumentCollection from the parent and use the DocumentCollectionIterator because it's 4 times faster
if (isSorted()) {
return new DocumentIterator(this);
} else {
org.openntf.domino.Database db = getParentDatabase();
org.openntf.domino.impl.DocumentCollection mergeColl = (org.openntf.domino.impl.DocumentCollection) db
.createMergableDocumentCollection();
for (int nid : getNids()) {