diff --git a/application/controller/CategoryController.php b/application/controller/CategoryController.php index 83255ee32..d47c31d1f 100644 --- a/application/controller/CategoryController.php +++ b/application/controller/CategoryController.php @@ -429,8 +429,7 @@ private function applySortOrder(ARSelectFilter $selectFilter, $order) } else if (substr($order, 0, 3) == 'sku') { - $selectFilter->setOrder(new ARFieldHandle('ProductPrice', 'price'), $dir); - $selectFilter->joinTable('ProductPrice', 'Product', 'productID AND (ProductPrice.currencyID = "' . $this->application->getDefaultCurrencyCode() . '")', 'ID'); + $selectFilter->setOrder(new ARFieldHandle('Product', 'sku'), $dir); } else if ('newest_arrivals' == $order) {