[advanced search] Search Messages resets the sort order / sort column. column choices and order should persist



13 years ago
2 years ago


(Reporter: (not reading, please use seth@sspitzer.org instead), Unassigned)


Windows XP
Bug Flags:
wanted-thunderbird +

Firefox Tracking Flags

(blocking-thunderbird3.1 -)


[advanced search] searching resets the sort order / sort column

to reproduce:

do an advanced search that returns multiple results.  (I did body contains on a
local folder)

the results appear in date ascending.

change the sort (either date descending or click on another column)

click the search button again and we will revert to date ascending.
I'm using tbird version 1.0+ (20050604) on windows xp
Severity: normal → minor

Comment 2

12 years ago
is "ignores" sort column is a better descriptor than "resets"?  sort indicator is always shown on the last column selected, regardless of the results.  

advanced search results are always returned as article physical order in the datasource - which is not unreasonable given that the (partial) results are displayed as the search progresses through the source. This is even more evident when searching multiple folders with folder name column displayed.

Are you suggesting that sort order indicator be removed after each search results? Or, are you suggesting a different display result, requiring perhaps more fundamental changes?
QA Contact: front-end

Comment 3

11 years ago
Seth, comment 2 :)
Assignee: mscott → nobody

Comment 4

10 years ago
Hi, I came up with this bug doing a search for my problem. I have successfully migrated from Outlook at work, moving 2 years worth of emails to Thunderbird specifically because of Outlook's poor search features. My problem is that when I search for something in Thunderbird, all the messages come up starting with 2007 - which in 99% of the cases means I am searching starting from the least relevant results, and I have to wait about 5 minutes to get to 2009, which is ridiculous when searching for an ftp password I was mailed 3 weeks ago... I have a feeling this would not be difficult to change in Thunderbird? Or am I missing some very easy solution?

Flags: wanted-thunderbird3?

Comment 5

10 years ago
So, what I am actually requesting is that the search order is either reversed or customizable :)

Comment 6

10 years ago
(In reply to comment #5)
> So, what I am actually requesting is that the search order is either reversed
> or customizable :)

This bug isn't what you want - you want the search to actually happen in reverse order, looking at newest messages first. This bug is about the order that we display the results, not the order that we calculate them.

for local searches, as opposed to imap, we could probably do this. For IMAP, we're somewhat dependent on what the imap server does.

Comment 7

10 years ago
Really fast reply, thank you.

I am talking about a  local search.

Should I file a separate feature request then?

Comment 8

10 years ago
yes, thx.
Duplicate of this bug: 533286
Duplicate of this bug: 439697
Flags: wanted-thunderbird3? → blocking-thunderbird3.1?
Not blocking 3.1 on this as it doesn't seem a big user issue.
blocking-thunderbird3.1: --- → -
Flags: blocking-thunderbird3.1? → wanted-thunderbird+


8 years ago
Duplicate of this bug: 473598
See Also: → bug 528044


7 years ago
Last Resolved: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 260289

Comment 14

7 years ago
sorry for spam - I failed to examine component of this bug against bug 260289 :(
Severity: minor → normal
Component: Mail Window Front End → Search
QA Contact: front-end → search
Resolution: DUPLICATE → ---
See Also: → bug 260289


7 years ago
Duplicate of this bug: 648851

Comment 16

7 years ago
This does not appear to me to be a dup of 260289, which is specific to the address book.

I think I've got the same problem.  In my case, I think it has to do with secondary sort.  

It didn't used to be this way!  This used to happen in 3.<something> timeframe, but it was fixed somewhere along the way; did not happen, for example, in 9.x (and I don't think in 8.x).  It's now back with either 10.0 or 10.0.1, and it continues in 10.0.2.  

I'm currently running 10.0.2.  I experience this issue in unified folders and in saved search folders.  My mailnews.default_sort_order is 2 and mailnews.default_sort_type is 18 (descending byDate).  On some folders, I have a secondary sort to bring flagged (starred) items to the top (starred by descending date, then everything else by descending date).  

**For those folders with a secondary sort:**

When I performing a quick filter, the order for the results is something I can't quite figure out (doesn't always have a recognizable pattern, but it is sometimes date ascending) -- I would expect it not to change the sort at all from the original folder's display (starred by desc date then desc date).  The secondary sort is usually followed (so I get starred items in random order, then everything else in random order).  

So the results seem to ignore the primary sort and the default sort, but they pick up the secondary sort.  

I would think that the folder has one sort, no matter if quick filter is applied or not, so that if you do not change the sort under quick filter, the original does not change; and if you DO change the sort under quick filter, the original DOES change.  But that's not what I am experiencing.  

Sometimes (but not usually), performing a quick filter changes the sort of the original folder (when I do not change any sorts).  I haven't been able to determine a pattern.

Sometimes (but not always), if I change the sort order while in the middle of a quick filter, the original folder is also changed.  I haven't been able to determine a pattern.  

I haven't (yet?) experienced the problem on a folder with simple sort (which matches the default, desc byDate), so in my case, the issue is with sorting of quick filter results on folder that have a secondary sort.

-- mdeck

Comment 17

7 years ago
p.s. I'm on Win 7 64-bit.


3 years ago
See Also: → bug 421335
Summary: [advanced search] searching resets the sort order / sort column → [advanced search] Search Messages resets the sort order / sort column. column choices and order should persist
You need to log in before you can comment on or make changes to this bug.