@@ -0,0 +1,553 @@
+package org.textfiledatatools.core.comparator;%0A%0Aimport org.textfiledatatools.core.Record;%0A%0Aimport java.io.Serializable;%0Aimport java.util.Comparator;%0A%0A/**%0A * Note: this comparator imposes orderings that are inconsistent with equals.%0A *%0A * @author Mathias Kalb%0A * @since 0.1%0A */%0Apublic class SizeComparator%3CT extends Record%3E implements Comparator%3CT%3E, Serializable %7B%0A%0A    private static final long serialVersionUID = 1L;%0A%0A    @Override%0A    public int compare(T record1, T record2) %7B%0A        return Integer.compare(record1.size(), record2.size());%0A    %7D%0A%0A%7D%0A

Add first Comparator