Skip to content

Commit

Permalink
Add sortList without ascendingOrder property
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandanielvillegasrojas committed Dec 29, 2016
1 parent e23fff4 commit 4d175d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ public static String setWildcardAll(String value) {
return value;
}

public static List<?> sortList(List<?> list, String property) {
return sortList(list, property, true);
}

@SuppressWarnings("unchecked")
public static List<?> sortList(List<?> list, String property, boolean ascendingOrder) {
if (list == null || list.size() < 2) {
Expand Down

0 comments on commit 4d175d4

Please sign in to comment.