@@ -354,8 +354,7 @@ discard block |
||
354 | 354 | function sorter($direction, $key) { |
355 | 355 | return function($a, $b) use ($direction, $key) { |
356 | 356 | return $direction == 'ASC' ? |
357 | - strcasecmp($a['props'][$key] ?? '', $b['props'][$key] ?? '') : |
|
358 | - strcasecmp($b['props'][$key] ?? '', $a['props'][$key] ?? ''); |
|
357 | + strcasecmp($a['props'][$key] ?? '', $b['props'][$key] ?? '') : strcasecmp($b['props'][$key] ?? '', $a['props'][$key] ?? ''); |
|
359 | 358 | }; |
360 | 359 | } |
361 | 360 | usort($items, sorter($sortingDir, $sortingField)); |
@@ -760,7 +759,7 @@ discard block |
||
760 | 759 | ], |
761 | 760 | [ |
762 | 761 | RES_OR, |
763 | - $tempRestrictions, // all group restrictions |
|
762 | + $tempRestrictions, // all group restrictions |
|
764 | 763 | ], |
765 | 764 | ], |
766 | 765 | ], |