From 0c3ecdde64363cebd3fe116d3a84299c9b45ce79 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 13 Nov 2015 12:36:07 +0000 Subject: [PATCH] imap : sort the mails git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2388 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- imap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap.php b/imap.php index 0a7e351..ddf5f7d 100644 --- a/imap.php +++ b/imap.php @@ -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; }