question: public void init ( Iterator iter , Comparator c ) { m_tuples . clear ( ) ; m_cmp = c ; while ( iter . hasNext ( ) ) { Tuple t = ( Tuple ) iter . next ( ) ; m_tuples . add ( t ) ; } Collections . sort ( m_tuples , m_cmp ) ; m_iter = m_tuples . iterator ( ) ; }
target:  Initialize this iterator for the given source iterator and comparator.