Commit 4a213c600645097c1f24cdfe34b75f561e0c458c
1 parent
c420426c
bug sort + filter
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/lib/models/items.php
| @@ -4165,6 +4165,10 @@ class items extends \db | @@ -4165,6 +4165,10 @@ class items extends \db | ||
| 4165 | { | 4165 | { |
| 4166 | $order = 'min_price DESC'; | 4166 | $order = 'min_price DESC'; |
| 4167 | } | 4167 | } |
| 4168 | + if( in_array( 5, $sort ) && in_array( 0, $sort ) ) | ||
| 4169 | + { | ||
| 4170 | + $order = 'title ASC'; | ||
| 4171 | + } | ||
| 4168 | return $this->get( | 4172 | return $this->get( |
| 4169 | ' | 4173 | ' |
| 4170 | SELECT | 4174 | SELECT |