Variable: corfu-sort-function

corfu-sort-function is a customizable variable defined in corfu.el.

Value

corfu-sort-length-alpha

Documentation

Default sorting function.

This function is used if the completion table does not specify a display-sort-function.

Source Code

;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu.el
(defcustom corfu-sort-function #'corfu-sort-length-alpha
  "Default sorting function.
This function is used if the completion table does not specify a
`display-sort-function'."
  :type `(choice
          (const :tag "No sorting" nil)
          (const :tag "By length and alpha" ,#'corfu-sort-length-alpha)
          (function :tag "Custom function")))