Whoops wrong file
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 1 Mar 2003 01:35:10 +0000 (01:35 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 1 Mar 2003 01:35:10 +0000 (01:35 +0000)
In case of server sort and non sorted headers, display newest first

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4573 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php

index c8a98781965ed98f67eae3f8a1ceee0d25bc6ff8..b8e185e28d7c317123d6627520326ed1614727e3 100755 (executable)
@@ -159,6 +159,7 @@ function sqimap_get_sort_order ($imap_stream, $sort, $mbxresponse) {
             $qty = $mbxresponse['EXISTS'];
             $server_sort_array = range(1, $qty);
         }
+        $server_sort_array = array_reverse($server_sort_array);
         sqsession_register($server_sort_array, 'server_sort_array');
         return $server_sort_array;
     }