Class SortUtil
java.lang.Object
com.reallifedeveloper.tools.test.database.inmemory.SortUtil
A helper class to assist with sorting lists in accordance with
org.springframework.data.domain.Sort instances.- Author:
- RealLifeDeveloper
-
Method Summary
-
Method Details
-
sort
Sorts the given list according to the sort definition provided.- Type Parameters:
T- the type of elements in the list- Parameters:
items- the list of items to sortsort- theorg.springframework.data.domain.Sortinstance defining how the list should be sorted- Returns:
- a copy of
items, sorted according tosort
-