Issue Bug Closed

#107780indexed_search descendingSortOrderFlag not working

Sergej Junker 10/18/25, 21:56 updated 12/02/25, 12:04

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