Merge pull request #25 from rosiel/patch-1
Display "DESC" when showing default sort.
This commit is contained in:
commit
4822f74362
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
|
|||
* A renderable array representing the sort by portion of pager.
|
||||
*/
|
||||
protected function buildSortByForm(array $sort_criteria, array $query_parameters) {
|
||||
$default_order = $query_parameters['sort_order'] ?? 'ASC';
|
||||
$default_order = $query_parameters['sort_order'] ?? 'DESC';
|
||||
$default_sort_by = $query_parameters['sort_by'] ?? 'search_api_relevance';
|
||||
$default_value = $default_sort_by . '_' . strtolower($default_order);
|
||||
$options = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue