From bbffc4d0e27d5b913601ef41d8e1c6448768af7b Mon Sep 17 00:00:00 2001 From: Grant Heggie Date: Fri, 20 Apr 2018 21:56:53 +1000 Subject: [PATCH] re-add sorting of Products using ListSorter --- src/Page/ProductCategoryController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Page/ProductCategoryController.php b/src/Page/ProductCategoryController.php index b95c580db..b10858906 100644 --- a/src/Page/ProductCategoryController.php +++ b/src/Page/ProductCategoryController.php @@ -14,8 +14,9 @@ class ProductCategoryController extends PageController public function Products($recursive = true) { $products = $this->ProductsShowable($recursive); + //sort the products - //$products = $this->getSorter()->sortList($products); + $products = $this->getSorter()->sortList($products); //paginate the products, if necessary $pagelength = ProductCategory::config()->page_length;