Browse Source

Fixed bug #497181
http://sf.net/tracker/?func=detail&atid=100311&aid=497181&group_id=311

thomppj 23 years ago
parent
commit
eb10fb8a92
2 changed files with 3 additions and 2 deletions
  1. 1 0
      ChangeLog
  2. 2 2
      functions/imap_mailbox.php

+ 1 - 0
ChangeLog

@@ -15,6 +15,7 @@ Version 1.2.2 -- ??
   - Changed conf.pl invocation from '#/usr/bin/perl' to
     '#!/usr/bin/env perl' to help people who have perl somewhere
     else. (Bug #496753)
+  - Fixed sorting of folder list, bug #497181
   	
 Version 1.2.1 -- 25 December 2001
 ---------------------------------

+ 2 - 2
functions/imap_mailbox.php

@@ -251,9 +251,9 @@ function user_strcasecmp($a, $b) {
         if (($a_del == $delimiter) && ($b_del == $delimiter)) {
             $result = 0;
         } else if (($a_del == $delimiter) && ($b_del != $delimiter)) {
-            $result = 1;
-        } else if (($a_del != $delimiter) && ($b_del == $delimiter)) {
             $result = -1;
+        } else if (($a_del != $delimiter) && ($b_del == $delimiter)) {
+            $result = 1;
         } else {
             $result = strcasecmp($a{$c}, $b{$c});
         }