From 00f63d821a8fe3fbab20d7bee5da99865fa0afa7 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 26 Mar 2009 23:55:30 -0600 Subject: [PATCH] Fix arrival sorting when client sorting --- framework/Imap_Client/lib/Horde/Imap/Client/Socket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.11.0