Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Feb 10, 2021
1 parent c21c15f commit 2c5b80d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/queryFilter/SortFiltersHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ public function applyToQuery(QueryInterface $query)
if ($this->value) {
switch ($this->value) {
case ('-popular'):
$query->orderBy(['show_counter' => SORT_DESC]);
$query->orderBy([
'priority' => SORT_ASC,
'show_counter' => SORT_DESC
]);
break;

case ('-new'):
Expand Down

0 comments on commit 2c5b80d

Please sign in to comment.