public class SortingInternal extends Object
| Constructor and Description |
|---|
SortingInternal() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sort(List list,
String sortBy,
Map<String,FieldAccess> fields,
boolean ascending)
This is the work horse.
|
static void |
sort(List list,
String sortBy,
Map<String,FieldAccess> fields,
boolean ascending,
boolean nullsFirst)
This is the work horse.
|
public static void sort(List list, String sortBy, Map<String,FieldAccess> fields, boolean ascending)
list - the list you want to sort.sortBy - what you want to sort the list by.fields - the reflection fieldsascending - true for ascendingpublic static void sort(List list, String sortBy, Map<String,FieldAccess> fields, boolean ascending, boolean nullsFirst)
list - the list you want to sort.sortBy - what you want to sort the list by.fields - the reflection fieldsascending - true for ascendingCopyright © 2014. All rights reserved.