@@ -0,0 +1,1010 @@
+package org.apache.logging.log4j.core.config;%0A%0Aimport java.util.Comparator;%0A%0Aimport org.apache.logging.log4j.core.util.Assert;%0A%0A/**%0A * Comparator for classes annotated with %7B@link Order%7D.%0A *%0A * @since 2.1%0A */%0Apublic class OrderComparator implements Comparator%3CClass%3C?%3E%3E %7B%0A    @Override%0A    public int compare(final Class%3C?%3E lhs, final Class%3C?%3E rhs) %7B%0A        final Order lhsOrder = Assert.requireNonNull(lhs, %22lhs%22).getAnnotation(Order.class);%0A        final Order rhsOrder = Assert.requireNonNull(rhs, %22rhs%22).getAnnotation(Order.class);%0A        if (lhsOrder == null && rhsOrder == null) %7B%0A            // both unannotated means we can't really compare them%0A            return 0;%0A        %7D%0A        // if only one class is @Order-annotated, then prefer that one%0A        if (rhsOrder == null) %7B%0A            return -1;%0A        %7D%0A        if (lhsOrder == null) %7B%0A            return 1;%0A        %7D%0A        // larger value means higher priority%0A        return Integer.signum(rhsOrder.value() - lhsOrder.value());%0A    %7D%0A%7D%0A

Add Comparator for @Order-annotated classes.