https://github.com/pconrad/java-comparators
Given any type T that implements Comparable<T>, for example:
IntegerimplementsComparable<Integer>StringimplementsComparable<String>
If we have an ArrayList<T> myList, we can use:
Collections.sort(myList)
to sort that list.