Commit a7996c34879be0b384557c99050482d5b3423a8e
1 parent
9911b5c2
customers backend order
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
src/lib/models/customers.php
... | ... | @@ -29,7 +29,10 @@ class customers extends \db |
29 | 29 | SELECT * FROM |
30 | 30 | public.customers |
31 | 31 | WHERE |
32 | - email LIKE \'%'.$like.'%\'' | |
32 | + email LIKE \'%'.$like.'%\' | |
33 | + ORDER BY | |
34 | + id ASC | |
35 | + ' | |
33 | 36 | , |
34 | 37 | [ |
35 | 38 | ], |
... | ... | @@ -45,8 +48,8 @@ class customers extends \db |
45 | 48 | WHERE |
46 | 49 | status = 1 |
47 | 50 | ORDER BY |
48 | - id DESC' | |
49 | - | |
51 | + id ASC | |
52 | + ' | |
50 | 53 | , |
51 | 54 | [ |
52 | 55 | ], | ... | ... |