From: Michael M Slusarz Date: Fri, 27 Mar 2009 05:55:30 +0000 (-0600) Subject: Fix arrival sorting when client sorting X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=00f63d821a8fe3fbab20d7bee5da99865fa0afa7;p=horde.git Fix arrival sorting when client sorting --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index ee1a67742..bd0fdff2c 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -1736,8 +1736,8 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base /* There is no requirement that IDs be returned in * sequence order (see RFC 4549 [4.3.1]). So we must sort * ourselves. */ - $sorted = $slice; - sort($sorted, SORT_NUMERIC); + $sorted = array_flip($slice); + ksort($sorted, SORT_NUMERIC); break; case Horde_Imap_Client::SORT_SIZE: