gnus-article-sort-functions

gnus-article-sort-functions is a variable defined in `gnus-sum.el'.
Its value is
(gnus-article-sort-by-number)

  • This variable may be risky if used as a file-local variable.

Documentation:
*List of functions used for sorting articles in the summary buffer.

Each function takes two articles and returns non-nil if the first
article should be sorted before the other. If you use more than one
function, the primary sort function should be the last. You should
probably always include `gnus-article-sort-by-number' in the list of
sorting functions -- preferably first. Also note that sorting by date
is often much slower than sorting by number, and the sorting order is
very similar. (Sorting by date means sorting by the time the message
was sent, sorting by number means sorting by arrival time.)

Each item can also be a list `(not F)' where F is a function;
this reverses the sort order.

Ready-made functions include `gnus-article-sort-by-number',
`gnus-article-sort-by-author', `gnus-article-sort-by-subject',
`gnus-article-sort-by-date', `gnus-article-sort-by-random'
and `gnus-article-sort-by-score'.

When threading is turned on, the variable `gnus-thread-sort-functions'
controls how articles are sorted.

You can customize this variable.