use uasort:sortByMailbox for inital sorting instead of ksort

This commit is contained in:
Klaus Leithoff 2015-10-02 12:36:48 +00:00
parent 26a76a023a
commit 6b92b480ba

View File

@ -2793,7 +2793,7 @@ class emailadmin_imapbase
if (self::$debugTimes) $starttime = microtime (true);
// Merge of all auto folders and specialusefolders
$autoFoldersTmp = array_unique((array_merge(self::$autoFolders, array_values(self::$specialUseFolders))));
ksort($folders);
uasort($folders,array($this,'sortByMailbox'));//ksort($folders);
$tmpFolders = $folders;
$inboxFolderObject=$inboxSubFolderObjects=$autoFolderObjects=$typeFolderObject=$mySpecialUseFolders=array();
$googleMailFolderObject=$googleAutoFolderObjects=$googleSubFolderObjects=array();