Subject: bug#53755: 27.2; C-u M-x gnus-summary-sort-by-most-recent-number / -date not ordering threads as expected

From: Arash Esbati <[email-masked]>
Date: Thu, 03 Feb 2022 20:54:33 +0100

Emilia Blåsten <[email-masked]> writes:

> In summary, there are two thing happening:
>
> 1) Threads seem to become sorted in reverse by their oldest message
> instead of in reverse by their newest message.
>
> 2) The order of the messages inside threads changes without the
> documentation mentioning it.

My apologies if I didn't understand your requirements correctly, but I
think you're looking for `gnus-subthread-sort-functions'.  Try

(setq (gnus-thread-sort-functions
       '(gnus-thread-sort-by-most-recent-number))
      (gnus-subthread-sort-functions
       '(gnus-thread-sort-by-date)))

Best, Arash