Lua primitives: sort()
When the global_mode is set to index you will be presented with a list of messages.
The list will default to showing all available messages, in the order "oldest" to "most recent". The sort-primitive allows you to change that order.
Valid options are:
|date-asc||Oldest to most recent. The default.|
|date-desc||Most recent to oldest.|
|from-asc||By sender, ascending.|
|from-desc||By sender, descending.|
|header-asc||By the value of the Date: header, ascending.|
|header-desc||By the value of the Date: header, descending.|
|subject-asc||By subject, ascending.|
|subject-desc||By subject, descending.|
-- Show in order received. sort( "date-asc" );
NOTE: The date-* options sort the messages based upon the mtime attribute of the message-files, as returned by stat which might be inaccurate. Please see the technical FAQ for notes on this.
This function has been available since version 0.15.
See also index_limit.