sort module list

This commit is contained in:
Jean-Christian Paul Denis 2023-05-13 17:40:00 +02:00
parent bcac3b99a8
commit 21db8ace76
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class Logs extends CleanerParent
'log_table',
])
->where($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
->order('log_table ASC')
->group('log_table');
$record = $sql->select();

View File

@ -103,6 +103,7 @@ class Preferences extends CleanerParent
'pref_ws',
])
->where($sql->orGroup(['user_id IS NULL', 'user_id IS NOT NULL']))
->order('pref_ws ASC')
->group('pref_ws');
$record = $sql->select();

View File

@ -107,6 +107,7 @@ class Settings extends CleanerParent
'setting_ns',
])
->where($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
->order('setting_ns ASC')
->group('setting_ns');
$record = $sql->select();

View File

@ -66,6 +66,7 @@ class Versions extends CleanerParent
$rs = $sql
->from(dcCore::app()->prefix . dcCore::VERSION_TABLE_NAME)
->columns(['module', 'version'])
->order('module ASC')
->select();
if (is_null($rs) || $rs->isEmpty()) {