Sort User-Defined Objects in Descending Order in Java

Collections.sort(persons, Collections.reverseOrder());

This is example demonstrates that we create a list of person objects and we compare each person's age by using compateTo() method of Comparable Interface. In short, we are sorting persons by age in descending order.