Here you can find the source of sortReverse(List
public static <T extends Comparable<? super T>> void sortReverse(List<T> list)
//package com.java2s; //License from project: Apache License import java.util.Collections; import java.util.Comparator; import java.util.List; public class Main { public static <T extends Comparable<? super T>> void sortReverse(List<T> list) { Collections.sort(list, Collections.reverseOrder()); }/*from w ww . j a v a2s .com*/ public static <T> void sortReverse(List<T> list, Comparator<? super T> c) { Collections.sort(list, Collections.reverseOrder(c)); } public static <T extends Comparable<? super T>> void sort(List<T> list) { Collections.sort(list); } public static <T> void sort(List<T> list, Comparator<? super T> c) { Collections.sort(list, c); } }