diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index e6d8bd6..ffd0985 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -159,7 +159,7 @@ class ProductFrontendSearch extends Product { ProductHelper::_setQueryParams($query, $params); - return $query->orderBy('product_variant.stock DESC'); + return $query->orderBy('product_variant.price DESC'); } public function optionsForCategory($category = null, $params = []) { -- libgit2 0.21.4