Check out example codes for "how to reverse order of arraylist". It will help you in understanding the concepts better.

Code Example 1

ArrayList<Integer> arrlist = new ArrayList<Integer>();
//This is how to reverse arrlist's oringinal order.
Collections.reverse(arrlist);

//This is how to sort in a reverse order
 Collections.sort(arrlist, Collections.reverseOrder());

Learn ReactJs, React Native from akashmittal.com