Skip to content

Commit a94cddf

Browse files
committed
Merge remote-tracking branch 'origin/MC-30131' into 2.4-develop-pr9
2 parents 5a556b7 + f4de663 commit a94cddf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
namespace Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection;
88

99
use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplierInterface;
10-
use Magento\Framework\Data\Collection;
1110
use Magento\Framework\Api\Search\SearchResultInterface;
11+
use Magento\Framework\Data\Collection;
1212

1313
/**
1414
* Resolve specific attributes for search criteria.
@@ -71,7 +71,7 @@ public function apply()
7171
$this->collection->getSelect()->where('e.entity_id IN (?)', $ids);
7272
$orderList = join(',', $ids);
7373
$this->collection->getSelect()->reset(\Magento\Framework\DB\Select::ORDER);
74-
$this->collection->getSelect()->order("FIELD(e.entity_id,$orderList)");
74+
$this->collection->getSelect()->order(new \Zend_Db_Expr("FIELD(e.entity_id,$orderList)"));
7575
}
7676

7777
/**

0 commit comments

Comments
 (0)