List of utility methods to do List Sort
void | sort(List sort Collections.sort(list); |
List | sort(List sort if (list != null && list.size() > 0) { Collections.sort((List) list); return list; |
List | sort(List sort if (isNotEmpty(list)) { Collections.sort((List) list); return list; |
void | sort(List sort Collections.sort(list); |
void | sort(List sort list.sort(c); |
List | sort(List Creates a copy of and sorts the given list. List<T> copy = new ArrayList<>(list); Collections.sort(copy, comparator); return copy; |
List | sort(List Same as in java.util.Collections, but returns list to allow daisy chaining calls Collections.sort(list, comparator);
return list;
|
void | sort(List sort if (sort != null && !sort.equals("")) { list.sort(comparator); if (!sortOrder) { Collections.reverse(list); |
List | sort(List sort List<T> new_objs = new ArrayList<T>(); new_objs.addAll(objs); Collections.sort(new_objs, cp); return new_objs; |
List | sort(Set sort List<T> result = new ArrayList<T>(list); return sort(result, comparator); |