Skip to content

Commit 6b74565

Browse files
Remove yearly sorting temporarily
The current Redis php interface does not support multisorting. The sorting needs to have a unique value, otherwise paging acts strangely.
1 parent c906afc commit 6b74565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/Search/ContentSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function prepareResults(array $result) {
126126
protected function compileSearchQuery(BuilderInterface &$search_query, $keywords) {
127127
parent::compileSearchQuery($search_query, $keywords);
128128
// Use the default ordering for content.
129-
$search_query->sortBy('year', 'DESC');
129+
// $search_query->sortBy('year', 'DESC');
130130
}
131131

132132

0 commit comments

Comments
 (0)