<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Changing sort direction doesn&#039;t work</title> 
  <pubDate>Thu, 09 Apr 2026 12:38:59 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9684</link> 
  <atom:link rel="self" type="application/rss+xml" title="Changing sort direction doesn&#039;t work" href="https://bugs.horde.org/ticket/9684/rss" /> 
  <description>Changing sort direction doesn&#039;t work</description> 
 
   
   
  <item> 
   <title>I tried to change the sort direction from ascending per date</title> 
   <description>I tried to change the sort direction from ascending per date to descending in the virtual inbox. The sort arrow changed, a viewPort request was sent and a response received, but the sort order was the same.</description> 
   <pubDate>Sat, 19 Mar 2011 13:58:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62469</link> 
  </item> 
   
  <item> 
   <title>Obviously sorting in search results won&#039;t work.  It seems th</title> 
   <description>Obviously sorting in search results won&#039;t work.  It seems that the code used to disable sort changing has been lost somewhere.  Probably when I removed the &#039;sort_limit&#039; config option.  So this needs to be added back.</description> 
   <pubDate>Tue, 22 Mar 2011 00:10:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62508</link> 
  </item> 
   
  <item> 
   <title>&gt; Obviously sorting in search results won&#039;t work.

At leas</title> 
   <description>&gt; Obviously sorting in search results won&#039;t work.

At least from a user perspective, not sure how this is obvious?</description> 
   <pubDate>Tue, 22 Mar 2011 03:28:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62514</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Obviously sorting in search results won&#039;t work.
&gt;
&gt; At </title> 
   <description>&gt;&gt; Obviously sorting in search results won&#039;t work.
&gt;
&gt; At least from a user perspective, not sure how this is obvious?

How so?  Sorting is (or at least should be - that&#039;s the point of this ticket) disabled in search mailboxes.  This is the way IMP has always worked.  So it should be obvious to users, when they can&#039;t change the sort columns, that sorting is not possible in a mailbox.

Simply put, this is a limitation of IMAP.  IMAP searches by mailbox ONLY.  Now that I have written client side sorting in the Socket driver, it is possible to do sorting among multiple mailboxes.  But this will require a significant alteration of the code in Imap_Client, and won&#039;t work for all sort options (e.g. sequence/arrival sort).

---

Sure enough, the commit that removed the sort_limit configuration option is what removed the ability to lock a search mailbox from being sorted:

commit d08804fd706e3cea9c3ea9aa9d9901b17dcf6fa9
Author: Michael M Slusarz &lt;slusarz@curecanti.org&gt;
Date:   Fri Mar 5 09:50:31 2010 -0700

    Remove &#039;sort_limit&#039; configuration option.

    This option was meant to work around slowness/inadequacies of c-client.
    Our Imap_Client library is much faster, so this should not be an issue
    moving forward (if someone really wants to sort their 1,000,000 message
    mailbox by thread, I guess that should be their option).
</description> 
   <pubDate>Tue, 22 Mar 2011 04:06:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62515</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Obviously sorting in search results won&#039;t work.
&gt;&gt;
&gt;&gt; </title> 
   <description>&gt;&gt;&gt; Obviously sorting in search results won&#039;t work.
&gt;&gt;
&gt;&gt; At least from a user perspective, not sure how this is obvious?
&gt;
&gt; How so?  Sorting is (or at least should be - that&#039;s the point of this 
&gt; ticket) disabled in search mailboxes.  This is the way IMP has always 
&gt; worked.  So it should be obvious to users, when they can&#039;t change the 
&gt; sort columns, that sorting is not possible in a mailbox.

No, that&#039;s not the point of the ticket. ;-) We always used to support sorting in search results, and we must still support it. We don&#039;t have to support sorting across all mailboxes, agreed, though this would be nice long-term too. But at least within in the results per mailbox, sorting must be possible.</description> 
   <pubDate>Tue, 22 Mar 2011 09:26:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62523</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9684: R</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9684: Restore sorting to search folders, although this is broken behavior

 2 files changed, 6 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/c129d40ae98ac480d18123caa43406ed12ab3b9d</description> 
   <pubDate>Tue, 22 Mar 2011 10:23:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62528</link> 
  </item> 
   
  <item> 
   <title>&gt; We always used to support 
&gt; sorting in search results, a</title> 
   <description>&gt; We always used to support 
&gt; sorting in search results, and we must still support it. We don&#039;t 
&gt; have to support sorting across all mailboxes, agreed, though this 
&gt; would be nice long-term too. But at least within in the results per 
&gt; mailbox, sorting must be possible.

Well I misspoke - we were sorting search results (other than by thread).  However, this is totally broken behavior because it completely breaks search display in every interface BUT imp.  e.g. in dimp, sorting appears to be totally random.

This is NOT going to work.  I don&#039;t care what we have done in the past, but this isn&#039;t going to fly.  We either need to to abandon ALL sorting in the search views or implement client side sorting.

And in imp, we need to get rid of the mailbox headers separating the various search mailbox results.  This is entirely inconsistent with the way we display search results in the other views.  Mailboxes should be irrelevant in search results - the messages are all that matters.</description> 
   <pubDate>Tue, 22 Mar 2011 10:29:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62529</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; We always used to support
&gt;&gt; sorting in search results, </title> 
   <description>&gt;&gt; We always used to support
&gt;&gt; sorting in search results, and we must still support it. We don&#039;t
&gt;&gt; have to support sorting across all mailboxes, agreed, though this
&gt;&gt; would be nice long-term too. But at least within in the results per
&gt;&gt; mailbox, sorting must be possible.
&gt;
&gt; Well I misspoke - we were sorting search results (other than by 
&gt; thread).  However, this is totally broken behavior because it 
&gt; completely breaks search display in every interface BUT imp.  e.g. in 
&gt; dimp, sorting appears to be totally random.
&gt;
&gt; This is NOT going to work.  I don&#039;t care what we have done in the 
&gt; past, but this isn&#039;t going to fly.  We either need to to abandon ALL 
&gt; sorting in the search views or implement client side sorting.

I agree, without the mailbox headers, sorting in other views than IMP looks random. I don&#039;t want to drop sorting of search results either, so client side sorting seems to be the only way out.

&gt; And in imp, we need to get rid of the mailbox headers separating the 
&gt; various search mailbox results.  This is entirely inconsistent with 
&gt; the way we display search results in the other views.  Mailboxes 
&gt; should be irrelevant in search results - the messages are all that 
&gt; matters.

True, but at the moment, without client-side sorting, this is the only way to indicate how the sorting works. I assume that client sorting is a big task, so maybe we can add similar indicators for the other views too?

Short-term I&#039;m fine with how it works now, even if it&#039;s kinda broken, because this how it works in IMP 4/DIMP.</description> 
   <pubDate>Tue, 22 Mar 2011 10:49:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62530</link> 
  </item> 
   
  <item> 
   <title>Closing and moving enhancement request to a new ticket.</title> 
   <description>Closing and moving enhancement request to a new ticket.</description> 
   <pubDate>Wed, 23 Mar 2011 06:09:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9684#t62561</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
