From d1fec8e21263653bef78fd1d3aeb0a4febeb1b06 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 17 Jan 2017 14:23:27 +0200 Subject: [PATCH] rm node nodule --- frontend/models/ProductFrontendSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index ffd0985..e6d8bd6 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.price DESC'); + return $query->orderBy('product_variant.stock DESC'); } public function optionsForCategory($category = null, $params = []) { -- libgit2 0.21.4