sort module list
This commit is contained in:
parent
bcac3b99a8
commit
21db8ace76
@ -72,6 +72,7 @@ class Logs extends CleanerParent
|
|||||||
'log_table',
|
'log_table',
|
||||||
])
|
])
|
||||||
->where($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
|
->where($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
|
||||||
|
->order('log_table ASC')
|
||||||
->group('log_table');
|
->group('log_table');
|
||||||
|
|
||||||
$record = $sql->select();
|
$record = $sql->select();
|
||||||
|
@ -103,6 +103,7 @@ class Preferences extends CleanerParent
|
|||||||
'pref_ws',
|
'pref_ws',
|
||||||
])
|
])
|
||||||
->where($sql->orGroup(['user_id IS NULL', 'user_id IS NOT NULL']))
|
->where($sql->orGroup(['user_id IS NULL', 'user_id IS NOT NULL']))
|
||||||
|
->order('pref_ws ASC')
|
||||||
->group('pref_ws');
|
->group('pref_ws');
|
||||||
|
|
||||||
$record = $sql->select();
|
$record = $sql->select();
|
||||||
|
@ -107,6 +107,7 @@ class Settings extends CleanerParent
|
|||||||
'setting_ns',
|
'setting_ns',
|
||||||
])
|
])
|
||||||
->where($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
|
->where($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
|
||||||
|
->order('setting_ns ASC')
|
||||||
->group('setting_ns');
|
->group('setting_ns');
|
||||||
|
|
||||||
$record = $sql->select();
|
$record = $sql->select();
|
||||||
|
@ -66,6 +66,7 @@ class Versions extends CleanerParent
|
|||||||
$rs = $sql
|
$rs = $sql
|
||||||
->from(dcCore::app()->prefix . dcCore::VERSION_TABLE_NAME)
|
->from(dcCore::app()->prefix . dcCore::VERSION_TABLE_NAME)
|
||||||
->columns(['module', 'version'])
|
->columns(['module', 'version'])
|
||||||
|
->order('module ASC')
|
||||||
->select();
|
->select();
|
||||||
|
|
||||||
if (is_null($rs) || $rs->isEmpty()) {
|
if (is_null($rs) || $rs->isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user