public void setComparator ( int index , Comparator < T > comparator , boolean ascending ) { this . comparators . set ( index , new InvertibleComparator <> ( comparator , ascending ) ) ; }
Replace the Comparator at the given index using the given sort order .