This commit has been accessed 529 times via Git panel.
commit efc011ff4546b3036e598b1c550919710bc72a07
tree d3425961ed89c22010f860dc98a298322d74fac7
parent 523c23fa3b933e792d3eb0511978a19c9ee82df7
author Engels Antonio <engels@majcms.org> 1328364053 +0800
committer Engels Antonio <engels@majcms.org> 1328364053 +0800
Improve webmail folders sort order
diff --git a/folders.php b/folders.php
index 799ac24..2b546b7 100644
--- a/folders.php
+++ b/folders.php
@@ -94,7 +94,7 @@ $folders = imap_list($mbox, $conn, "*");
if (is_array($folders)) {
reset($folders);
- sort($folders);
+ sort($folders,SORT_NUMERIC);
/*
$folder_images = glob("images/folder*");
tree d3425961ed89c22010f860dc98a298322d74fac7
parent 523c23fa3b933e792d3eb0511978a19c9ee82df7
author Engels Antonio <engels@majcms.org> 1328364053 +0800
committer Engels Antonio <engels@majcms.org> 1328364053 +0800
Improve webmail folders sort order
diff --git a/folders.php b/folders.php
index 799ac24..2b546b7 100644
--- a/folders.php
+++ b/folders.php
@@ -94,7 +94,7 @@ $folders = imap_list($mbox, $conn, "*");
if (is_array($folders)) {
reset($folders);
- sort($folders);
+ sort($folders,SORT_NUMERIC);
/*
$folder_images = glob("images/folder*");