I have List list1 in direct order. List list = Ordering.natural().sortedCopy(asu2);
List list = Ordering.natural().sortedCopy(asu2);
How to change order. And I don\'t know how to rewrite
There is a method reverseOrder in the Collections class which returns a Comparator.
Collections
Comparator
You can use it like Collections.sort(list, Collections.reverseOrder());
Collections.sort(list, Collections.reverseOrder());