public static void sort( List list, String sortBy, Map<String, FieldAccess> fields, boolean ascending) {

        sort(list, sortBy, fields, ascending, false);

    }
public static void sort( List list, String sortBy, Map<String, FieldAccess> fields, boolean ascending) {

        sort(list, sortBy, fields, ascending, false);

    }
public static void sort ( List list , String sortBy , Map < String , FieldAccess > fields , boolean ascending ) { sort ( list , sortBy , fields , ascending , false ) ; }
This is the work horse. It does all of the sorting work for the simple cases.
Nulls are last by default.
@param list the list you want to sort.
@param sortBy what you want to sort the list by.
@param fields the reflection fields
@param ascending true for ascending
This is the work horse . It does all of the sorting work for the simple cases . Nulls are last by default .