SortedMap<Integer, Node> triples = new TreeMap<Integer, Node>(order) ;
try {
for ( ; iter.hasNext() ; )
{
Triple t = iter.next() ;
int index = getIndex(t) ;
if ( index == NOT_FOUND )
continue ;
// Insert
triples.put(new Integer(index), t.getObject()) ;
}
} finally { iter.close() ; }
return triples.values() ;
}