Commit b5c5dde168c765e01b93940cf5719533a15ddf07
1 parent
e3177707
customers backend order
Showing
1 changed file
with
2 additions
and
9 deletions
Show diff stats
src/lib/models/customers.php
| ... | ... | @@ -30,8 +30,6 @@ class customers extends \db |
| 30 | 30 | public.customers |
| 31 | 31 | WHERE |
| 32 | 32 | email LIKE \'%'.$like.'%\' |
| 33 | - ORDER BY | |
| 34 | - id ASC | |
| 35 | 33 | ' |
| 36 | 34 | , |
| 37 | 35 | [ |
| ... | ... | @@ -47,8 +45,6 @@ class customers extends \db |
| 47 | 45 | public.customers |
| 48 | 46 | WHERE |
| 49 | 47 | status = 1 |
| 50 | - ORDER BY | |
| 51 | - id ASC | |
| 52 | 48 | ' |
| 53 | 49 | , |
| 54 | 50 | [ |
| ... | ... | @@ -78,14 +74,11 @@ class customers extends \db |
| 78 | 74 | SELECT * FROM |
| 79 | 75 | public.customers |
| 80 | 76 | ORDER BY |
| 81 | - id ASC | |
| 77 | + id DESC | |
| 82 | 78 | LIMIT |
| 83 | 79 | '.\config::get( 'limits/admin_orders' ).' |
| 84 | 80 | OFFSET |
| 85 | - '.($page-1)*(\config::get( 'limits/admin_orders' )).' | |
| 86 | - ORDER BY | |
| 87 | - id ASC | |
| 88 | - ' | |
| 81 | + '.($page-1)*(\config::get( 'limits/admin_orders' )) | |
| 89 | 82 | , |
| 90 | 83 | [ |
| 91 | 84 | ], | ... | ... |