src/org/kocakosm/pitaya/util/Comparators.java
public static <T extends Comparable<? super T>> Comparator<T> naturalOrder()
	{
		return new Comparator<T>()
		{
			@Override
			public int compare(T o1, T o2)
			{
				return o1.compareTo(Parameters.checkNotNull(o2));
			}
		};
	}
public static <T extends Comparable<? super T>> Comparator<T> naturalOrder()
	{
		return new Comparator<T>()
		{
			@Override
			public int compare(T o1, T o2)
			{
				return o1.compareTo(Parameters.checkNotNull(o2));
			}
		};
	}
Returns a {@code Comparator} that compares {@code Comparable} objects
in natural order. The returned comparator doesn't accept {@code null}
values.

@param <T> the {@code Comparable} type.

@return a {@code Comparator} that compares {@code Comparable} objects.