From: stekkel Date: Sat, 1 Mar 2003 01:35:10 +0000 (+0000) Subject: Whoops wrong file X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=770f0e03743628226d8c740c921c3ae77e8d87bd Whoops wrong file 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 --- diff --git a/functions/imap_messages.php b/functions/imap_messages.php index c8a98781..b8e185e2 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -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; }