public static < T extends Comparable < ? super T > > void sort ( List < T > list ) { if ( useQuickSort ) QuickSort . sort ( list ) ; else Collections . sort ( list ) ; }
Wrap Collections . sort so we can fallback to a non - stable quicksort if we re running on JDK7 +