public interface Comparator { int compare(Object object1, Object object2); }
Collections.sort(list, comp);