imap : sort the mails

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2388 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-11-13 12:36:07 +00:00
parent de8bda851e
commit 0c3ecdde64

View File

@@ -82,7 +82,7 @@ class imap
if ($this->mailbox === null)
throw new Exception ("IMAP server not connected", 500);
$list = array_keys ($this->foldersListWithAttr ());
natsort ($list);
sort ($list);
return $list;
}
@@ -174,7 +174,7 @@ class imap
$res = array_map (function ($folder) {
return mb_convert_encoding ($folder, "UTF-8", "UTF7-IMAP");
}, $res);
natsort ($res);
sort ($res);
return $res;
}