资 源 简 介
list-sorter sorts your java lists in a flexible way.
Following samples shows how list sorter sorts sample Employee objects either its functions or custom rules.
```
//Sorting by name and surname.You can define your rules at sortOrder function
SortUtil.sort(yourEmployeeList);
```
```
//Sorting by name.String array parameter is for getting path of the sort method.
//In this case you don"t have to define sortOrder method
SortUtil.sort(yourEmployeeList, new String[] { "getName" });
```
```
//if your sorting based on string in your locale just pass your locale.
SortUtil.sort(yourEmployeeList, new String[] { "getName" },locale);
```
```
//Sorting by department name.we are defining the sort method path.
SortUtil.sort(yourEmployeeList, new String[] { "getDepartment","getDepartmentName" });
```
```
//Sort your list by descending order
SortUtil.sort(yourEmplo