Sorting ArrayList in Java is a common task for Java developer and we have touched it while discussing
10 Example of ArrayList in Java and again when we discussed comparator and comparable in Java. In order to sort an arraylist we need to use Collections utility class which contains overloaded sort() method for sorting different collections and supports different comparator in Java. In this article we will see How to sort ArrayList with natural order of element and than sorting ArrayList in Java with comparator.