takes comparator as parameter. So each element is compared with the other using the overriden method for the interface and the collection is sorted in
that manner. Please check the implementation of reverseOrder method in jdk source.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com