Wrong sorting - please help me debug this

Jim Pingle lists at pingle.org
Fri Jul 21 03:25:41 CEST 2006


Michael Bueker wrote:
> before I file a ticket, I'd like to find out a little more about what
> might be causing this - so please help me :)
> 
> This is SVN revision 247:
> 
> When sorting by date (displaying Messages 1 to 64 of 1211) with the
> arrow in the "Date" column pointing up (sorry forthis, but I really
> can't figure out how it's _supposed_ to be sorted...), the sorting is
> pretty much random I'll give you a little overview:
> 
>  1  Sun 14:50         (Source: Date: Sun, 16 Jul 2006 14:50:51 +0200)
>  2  09.02.2006 17:14  (Source: Date: Thu, 09 Feb 2006 16:14:58 +0100)
>  3  10.02.2006 18:47  (Source: Date: Fri, 10 Feb 2006 17:47:48 +0100)
>  4  17.03.2006 18:11  (Source: Date: Fri, 17 Mar 2006 17:11:25 +0100)
> ..
> 15  12.07.2006 14:51  (Source: Date: Wed, 12 Jul 2006 14:51:53 +0200)
> 16  Tue 14:04         (Source: Date: Tue, 18 Jul 2006 14:04:36 +0200)
> 17  11.01.2006 12:20  (Source: Date: Wed, 11 Jan 2006 11:20:53 +0100)
> ..
> 62  12.07.2006 14:37  (Source: Date: Wed, 12 Jul 2006 14:37:47 +0200)
> 63  Sat 19:54         (Source: Date: Sat, 15 Jul 2006 19:54:03 +0200)
> 64  Sun 14:53         (Source: Date: Sun, 16 Jul 2006 14:53:13 +0200)
> 
> This happens with both Pretty Dates on and off, and in several folders
> in a similar way.
> 
> I hope this helps!

Could it be your IMAP server returning them in this order? What IMAP server
are you using?

I'm using Courier on one of my RC setups, and in a couple rudimentary tests,
it sorted properly. I took a really old message and stuck it in a folder,
and checked it in Thunderbird and Roundcube - When sorted by date in RC it
was in the proper order, and in TB it has an option to sort by received
order, and in that case it showed up last, as it was the 'newest' entry in
the folder. So for me it appears to be working fine with Courier.

Also, are those message dates right? If you view the source of those
messages that are in the middle of the list, and check the headers, do the
times the server received the message match up with what's reported in the
Date field? Just curious.

Jim





More information about the Dev mailing list