Alex Savenko
/
semena
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
4a213c600645097c1f24cdfe34b75f561e0c458c
Authored by
Alex Savenko
2017-01-30 17:42:34 +0200
1 parent
c420426c
bug sort + filter
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/lib/models/items.php
Inline
Side-by-side
src/lib/models/items.php
Wrap text
Show/Hide comments
View file @
4a213c6
...
...
@@ -4165,6 +4165,10 @@ class items extends \db
4165
4165
{
4166
4166
$order = 'min_price DESC';
4167
4167
}
4168
+ if( in_array( 5, $sort ) && in_array( 0, $sort ) )
4169
+ {
4170
+ $order = 'title ASC';
4171
+ }
4168
4172
return $this->get(
4169
4173
'
4170
4174
SELECT
...
...