I have an ArrayList which stores Dates and I sorted them in descending order. Now I want to display them in a ListView. This is what I
Date is Comparable so just create list of List and sort it using Collections.sort(). And use Collections.reverseOrder() to get comparator in reverse ordering.
From Java Doc
Returns a comparator that imposes the reverse ordering of the specified comparator. If the specified comparator is null, this method is equivalent to reverseOrder() (in other words, it returns a comparator that imposes the reverse of the natural ordering on a collection of objects that implement the Comparable interface).