SEBSERV-569 fixed, regression due to code cleanup

This commit is contained in:
anhefti 2024-07-18 14:18:29 +02:00
parent b0e8e11d26
commit f4ccd16425

View file

@ -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);