Variable: Buffer-menu-group-sort-by
Buffer-menu-group-sort-by is a customizable variable defined in
buff-menu.el.gz.
Value
nil
Documentation
If non-nil, function to sort buffer-menu groups by name.
Each function is called with two arguments: an alist of groups where an alist key is a group name and also the level as a number, and should return the same alist where groups are sorted. If this is nil, group names are unsorted.
This variable was added, or its default value changed, in Emacs 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defcustom Buffer-menu-group-sort-by nil
"If non-nil, function to sort buffer-menu groups by name.
Each function is called with two arguments: an alist of groups
where an alist key is a group name and also the level as a number,
and should return the same alist where groups are sorted.
If this is nil, group names are unsorted."
:type '(choice (const :tag "No group sorting" nil)
(const :tag "Sort groups alphabetically"
Buffer-menu-group-sort-alphabetically)
(function :tag "Custom function"))
:group 'Buffer-menu
:version "30.1")