items = new Entry[other.getLength()]; Item item; Entry entry; Sequence seq; AtomicValue value; int k = 0; for(SequenceIterator i = other.iterate(); i.hasNext(); k++) { item = i.nextItem(); entry = new Entry(item); items[k] = entry; } FastQSort.sort(items, 0, items.length - 1);
if(other.getLength() > 0) { Item next; for(SequenceIterator i = other.iterate(); i.hasNext(); ) { next = i.nextItem(); if(next != null) add(next); } } else if(other.getLength() == 1) add(other.itemAt(0));
	public void addAll(Sequence other) throws XPathException {		items = new Entry[other.getLength()];		Item item;		Entry entry;		Sequence seq;		AtomicValue value;		int k = 0;		for(SequenceIterator i = other.iterate(); i.hasNext(); k++) {			item = i.nextItem();			entry = new Entry(item);			items[k] = entry;		}		FastQSort.sort(items, 0, items.length - 1);	}