Variable: completions-sort
completions-sort is a customizable variable defined in
minibuffer.el.gz.
Value
alphabetical
Documentation
Sort candidates in the *Completions* buffer.
The value can be nil to disable sorting, alphabetical for
alphabetical sorting or a custom sorting function. The sorting
function takes and returns a list of completion candidate
strings.
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defcustom completions-sort 'alphabetical
"Sort candidates in the *Completions* buffer.
The value can be nil to disable sorting, `alphabetical' for
alphabetical sorting or a custom sorting function. The sorting
function takes and returns a list of completion candidate
strings."
:type '(choice (const :tag "No sorting" nil)
(const :tag "Alphabetical sorting" alphabetical)
(function :tag "Custom function"))
:version "29.1")