Skip to content

Commit

Permalink
Merge pull request #1194 from rbayet/fix_1192_inconsistent_unchanged_…
Browse files Browse the repository at this point in the history
…order_layered_nav_filters

Fixes #1192 Homogeneous secondary sort order
  • Loading branch information
romainruaud authored Nov 23, 2018
2 parents 950d331 + 44f4208 commit ebaf51e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected function _prepareAttributeCollection($collection)
{
$collection->addSetInfo(true);
$collection->addIsFilterableFilter();
$collection->setOrder('attribute_id', 'ASC');

$category = $this->layerResolver->get()->getCurrentCategory();
if ($category && $category->getId()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ private function getAttributes($category)
->setCategory($category)
->addIsFilterableFilter()
->addStoreLabel($category->getStoreId())
->setOrder('position', 'ASC');
->setOrder('position', 'ASC')
->setOrder('attribute_id', 'ASC');

$storeId = $this->getStoreId($category);

Expand Down

0 comments on commit ebaf51e

Please sign in to comment.