@SuppressWarnings("unchecked")
    public M sortOrder(final Comparator<T> comparator)
    {
        Checks.notNull(comparator, "Provided comparator");

        this.orderList.sort(comparator);
        return (M) this;
    }
@ SuppressWarnings ( "unchecked" ) public M sortOrder ( final Comparator < T > comparator ) { Checks . notNull ( comparator , "Provided comparator" ) ; this . orderList . sort ( comparator ) ; return ( M ) this ; }
Sorts the {@link #getCurrentOrder() current order} based on
the specified {@link java.util.Comparator Comparator}.
<br>Using {@link java.util.ArrayList#sort(java.util.Comparator) ArrayList.sort(comparator)}

@param  comparator
Comparator used to sort the current order

@throws java.lang.IllegalArgumentException
If the specified comparator is {@code null}

@return The current OrderAction sub-implementation instance

@see    java.util.ArrayList#sort(java.util.Comparator)