Skip to content

Commit

Permalink
Merge pull request PrestaShop#34598 from mrkalchemy/fix-for-issue-341…
Browse files Browse the repository at this point in the history
…74-dev

Fix sorting by Relevance in search results (develop branch version)
  • Loading branch information
nicosomb authored Nov 20, 2023
2 parents 24623e8 + e3d6eb9 commit 61da3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Search/SearchProductSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function runQuery(
$result->setAvailableSortOrders(
array_merge(
[
(new SortOrder('product', 'position', 'asc'))->setLabel(
(new SortOrder('product', 'position', 'desc'))->setLabel(
$this->translator->trans('Relevance', [], 'Shop.Theme.Catalog')
),
],
Expand Down

0 comments on commit 61da3a3

Please sign in to comment.