We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c997f commit 98bd8beCopy full SHA for 98bd8be
app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php
@@ -195,8 +195,8 @@ public function setCollection($collection)
195
if (($this->getCurrentOrder()) == 'position') {
196
$this->_collection->addAttributeToSort(
197
$this->getCurrentOrder(),
198
- $this->getCurrentDirection())->addAttributeToSort('entity_id', $this->getCurrentDirection()
199
- );
+ $this->getCurrentDirection()
+ )->addAttributeToSort('entity_id', $this->getCurrentDirection());
200
} else {
201
$this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
202
}
0 commit comments