From: Michael M Slusarz Date: Fri, 5 Dec 2008 21:18:11 +0000 (-0700) Subject: Fix thread sorting when a UID is out of order. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6be039a1293890259778a5f1addca4a429603580;p=horde.git Fix thread sorting when a UID is out of order. --- diff --git a/imp/lib/IMAP/Thread.php b/imp/lib/IMAP/Thread.php index 760f305a6..14e73cf9a 100644 --- a/imp/lib/IMAP/Thread.php +++ b/imp/lib/IMAP/Thread.php @@ -60,9 +60,7 @@ class IMP_IMAP_Thread $thread_level = $tree = array(); $t = &$this->_thread; - if ($sortdir) { - $indices = array_reverse($indices); - } + $indices = array_intersect($t->messageList($sortdir), $indices); /* If starting in the middle of a thread, the threadLevel tree needs * to be built from the base of the current thread. */