Next: Rmail Display, Previous: Rmail Summary, Up: Rmail
The Rmail sort commands perform a stable sort: if there is no
reason to prefer either one of two messages, their order remains
unchanged. You can use this to sort by more than one criterion. For
example, if you use rmail-sort-by-date
and then
rmail-sort-by-author
, messages from the same author appear in
order by date.
With a prefix argument, all these commands reverse the order of comparison. This means they sort messages from newest to oldest, from biggest to smallest, or in reverse alphabetical order.
The same keys in the summary buffer run similar functions; for
example, C-c C-s C-l runs rmail-summary-sort-by-lines
.
Note that these commands always sort the whole Rmail buffer, even if the
summary is only showing a subset of messages.
Note that you cannot undo a sort, so you may wish to save the Rmail buffer before sorting it.