List of utility methods to do List Sort
void | removeSortColumns(List remove Sort Columns List<String> removedSorts = new ArrayList<String>(); for (String sort : sorts) { if (!containsColumnByAlias(selectColumns, sort)) { removedSorts.add(sort); for (String sort : removedSorts) { removeSortByColumnName(sorts, ascending, sort); ... |
int | searchSorted(List Search sorted list index int idx = -1; int n = a.size(); if (a.get(1).doubleValue() > a.get(0).doubleValue()) { if (v < a.get(0).doubleValue()) { return idx; if (v > a.get(n - 1).doubleValue()) { return idx; ... |
List | setToSortedList(final Set Converts a Set into a sorted List .
final List<T> list = new LinkedList<T>(set); Collections.sort(list, comparator); return list; |
S | sort(S list) sort Collections.sort(list);
return list;
|
List | sort(Collection list) sort return sort(list, true);
|
ArrayList | Sort(Collection Convenience methods that makes it easier to sort a collection ArrayList<String> newList = new ArrayList<String>(list); Collections.sort(newList); return newList; |
List | sort(Collection sort List<T> list1 = new ArrayList<>(list); Collections.sort(list1); return list1; |
List | sort(final List Sorts the specified string list. List<String> listSorted = null; if (list != null) { listSorted = new ArrayList<String>(); for (final String str : list) { listSorted.add(getIndexForSortedInsert(listSorted, str), str); return listSorted; ... |
List | sort(List list) Sort ascending a list structure. for (int i = 0; list != null && i < list.size(); i++) { String actual = (String) list.get(i); for (int j = i; j < list.size(); j++) { String next = (String) list.get(j); if (actual.compareTo(next) > 0) { list.set(i, next); list.set(j, actual); actual = next; ... |
List | sort(List list) sort Collections.sort(list);
return list;
|