<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">

On Mar 6, 2020, at 10:47 AM, David Bremner <david@tethera.net> wrote:

There is the following documentation in notmuch-search(1).

    Note: The thread order will be distinct between these two options (beyond being sim‐
    ply reversed). When sorting by oldest-first the threads will be sorted by the oldest
    message  in each thread, but when sorting by newest-first the threads will be sorted
    by the newest message in each thread.

If what you are seeing is consistent with that, then I guess it's
officially not a bug.

The documentation seems to be in error, assuming you have copied it correctly. It says the thread orders are not strictly inverse between the two options, but then describes them precisely inverse. 

Perhaps the word “unread” was unintentionally elided by the doc author, such that you could correct with the capitalized addition:

<font color="#000000">When sorting by oldest-first the threads will be sorted by the oldest UNREAD
    message  in each thread, but when sorting by newest-first the threads will be sorted
    by the newest message in each thread.
</font>

This would match the behavior described by Tom. 

</body></html>