Commit 1d13b8aa3690dfe4e762ae98f6f950a03801cfbf
1 parent
d1fec8e2
rm node nodule
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/models/ProductFrontendSearch.php
@@ -159,7 +159,7 @@ class ProductFrontendSearch extends Product { | @@ -159,7 +159,7 @@ class ProductFrontendSearch extends Product { | ||
159 | ProductHelper::_setQueryParams($query, $params); | 159 | ProductHelper::_setQueryParams($query, $params); |
160 | 160 | ||
161 | 161 | ||
162 | - return $query->orderBy('product_variant.stock DESC'); | 162 | + return $query->orderBy('product_variant.price DESC'); |
163 | } | 163 | } |
164 | 164 | ||
165 | public function optionsForCategory($category = null, $params = []) { | 165 | public function optionsForCategory($category = null, $params = []) { |