public List < Triple > getSortedTriples ( final Model model , final Iterator < Triple > it ) { final List < Triple > triples = newArrayList ( it ) ; triples . sort ( new TripleOrdering ( model ) ) ; return triples ; }
Sort a Iterator of Triples alphabetically by its subject predicate and object