SEBSERV-569 fixed, regression due to code cleanup
This commit is contained in:
parent
b0e8e11d26
commit
f4ccd16425
1 changed files with 0 additions and 2 deletions
|
@ -253,9 +253,7 @@ public final class QuizData implements GrantEntity {
|
|||
}
|
||||
|
||||
public static Comparator<QuizData> getComparator(final String sort) {
|
||||
|
||||
final boolean descending = PageSortOrder.getSortOrder(sort) == PageSortOrder.DESCENDING;
|
||||
System.out.println("**************** sort: " + sort + " descending " + descending);
|
||||
final String sortParam = PageSortOrder.decode(sort);
|
||||
if (QUIZ_ATTR_NAME.equals(sortParam)) {
|
||||
return (qd1, qd2) -> StringUtils.compare(qd1.name, qd2.name) * ((descending) ? -1 : 1);
|
||||
|
|
Loading…
Reference in a new issue