#107780indexed_search descendingSortOrderFlag not working
Description
The descendingSortOrderFlag is not working in the advanced search.
The sort order won’t change when i switch from “highest first” to “lowest first”.
I think the problem is in the descendingSortOrderFlag in Classes/Domain/Repository/IndexSearchRepository.php.
In line 177 the array key is wrong I think. When i change the code from the original
$this->descendingSortOrderFlag = (bool)($searchData['desc'] ?? false);
to
$this->descendingSortOrderFlag = (bool)($searchData['sortDesc'] ?? false);
then the order changes. Maybe you can check that? Thanks :)
Reviews 2
History 24
-
Gerrit Code Review pushed patch set 1 for main to change 91173 status
NewUnder Review 10/20/25, 19:20 -
Gerrit Code Review pushed patch set 1 for 13.4 to change 91176 10/21/25, 07:21
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % 10/21/25, 07:25 -
Benni Mack changed status
ResolvedClosed 12/02/25, 12:04
Applied in changeset commit:7530849ccff0a3729f074478486dd98a9996b02e.