Variable: gnus-group-sort-function
gnus-group-sort-function is a customizable variable defined in
gnus-group.el.gz.
Value
gnus-group-sort-by-alphabet
Documentation
Function used for sorting the group buffer.
This function will be called with group info entries as the arguments
for the groups to be sorted. Pre-made functions include
gnus-group-sort-by-alphabet, gnus-group-sort-by-real-name,
gnus-group-sort-by-unread, gnus-group-sort-by-level,
gnus-group-sort-by-score, gnus-group-sort-by-method,
gnus-group-sort-by-server, and gnus-group-sort-by-rank.
This variable can also be a list of sorting functions. In that case, the most significant sort function should be the last function in the list.
Probably introduced at or before Emacs version 19.32.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-group.el.gz
(defcustom gnus-group-sort-function 'gnus-group-sort-by-alphabet
"Function used for sorting the group buffer.
This function will be called with group info entries as the arguments
for the groups to be sorted. Pre-made functions include
`gnus-group-sort-by-alphabet', `gnus-group-sort-by-real-name',
`gnus-group-sort-by-unread', `gnus-group-sort-by-level',
`gnus-group-sort-by-score', `gnus-group-sort-by-method',
`gnus-group-sort-by-server', and `gnus-group-sort-by-rank'.
This variable can also be a list of sorting functions. In that case,
the most significant sort function should be the last function in the
list."
:group 'gnus-group-listing
:link '(custom-manual "(gnus)Sorting Groups")
:type '(repeat :value-to-internal (lambda (widget value)
(if (listp value) value (list value)))
:match (lambda (widget value)
(or (symbolp value)
(widget-editable-list-match widget value)))
(choice (function-item gnus-group-sort-by-alphabet)
(function-item gnus-group-sort-by-real-name)
(function-item gnus-group-sort-by-unread)
(function-item gnus-group-sort-by-level)
(function-item gnus-group-sort-by-score)
(function-item gnus-group-sort-by-method)
(function-item gnus-group-sort-by-server)
(function-item gnus-group-sort-by-rank)
(function :tag "other" nil))))