protected <T> Sortable<T> configureComparator(final Sortable<T> sortable) {
    if (isCustomComparatorAllowed()) {
      Comparator<?> comparator = sortable.getOrderBy();

      if (comparator != null) {
        ComparatorHolder.set(comparator);
      }
    }

    return sortable;
  }
protected < T > Sortable < T > configureComparator ( final Sortable < T > sortable ) { if ( isCustomComparatorAllowed ( ) ) { Comparator < ? > comparator = sortable . getOrderBy ( ) ; if ( comparator != null ) { ComparatorHolder . set ( comparator ) ; } } return sortable ; }
Configures the Comparator to use during the sort operation by the calling Thread.

@param <T> the Class type of the elements in the list.
@param sortable the Sortable implementing object specifying the Comparator to use to order elements in the list
during the sort operation.
@return the Sortable implementing object to method chaining purposes.
@see #configureComparator(org.cp.elements.util.sort.annotation.Sortable)
@see #isCustomComparatorAllowed()
@see ComparatorHolder#set(java.util.Comparator)
@see org.cp.elements.util.sort.Sortable#getOrderBy()
@see java.util.Comparator