src/org/kocakosm/pitaya/util/Comparators.java
public static <T> Comparator<T> compose(Comparator<? super T>... comparators)
	{
		return compose(Arrays.asList(comparators));
	}
public static <T> Comparator<T> compose(Comparator<? super T>... comparators)
	{
		return compose(Arrays.asList(comparators));
	}
Returns a {@code Comparator} that will call each {@code Comparator}
in the given array until one of them returns a non-zero result (will
return {@code 0} if they all return {@code 0}).

@param <T> the parameters type of the returned {@code Comparator}.
@param comparators the {@code Comparator}s to compose.

@return the composed {@code Comparator}.

@throws NullPointerException if {@code comparators} is {@code null}
of if it contains a {@code null} reference.
@throws IllegalArgumentException if {@code comparators} is empty.