Commit d1fec8e21263653bef78fd1d3aeb0a4febeb1b06
1 parent
a0564d5d
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 | 159 | ProductHelper::_setQueryParams($query, $params); |
| 160 | 160 | |
| 161 | 161 | |
| 162 | - return $query->orderBy('product_variant.price DESC'); | |
| 162 | + return $query->orderBy('product_variant.stock DESC'); | |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | public function optionsForCategory($category = null, $params = []) { | ... | ... |