diff --git a/src/app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Layer/Filter/Attribute.php b/src/app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Layer/Filter/Attribute.php index 909b1ba..c9b2a8f 100644 --- a/src/app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Layer/Filter/Attribute.php +++ b/src/app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Layer/Filter/Attribute.php @@ -129,6 +129,7 @@ public function getCount($filter) } } - return ksort($aggregationResult); + ksort($aggregationResult); + return $aggregationResult; } -} \ No newline at end of file +}