Skip to content

Commit 8981225

Browse files
committed
This PR is a fix for issue #15627 where the default sorting behaviour of Magento was changed in Magento 2.2.4.
1 parent 1ce8c0a commit 8981225

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Block/Product/ProductList

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function setCollection($collection)
196196
$this->_collection->addAttributeToSort(
197197
$this->getCurrentOrder(),
198198
$this->getCurrentDirection()
199-
)->addAttributeToSort('entity_id', $this->getCurrentDirection());
199+
);
200200
} else {
201201
$this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
202202
}

0 commit comments

Comments
 (0)