* lisp/completion-preview.el
(completion-preview-sort-function): Add some specific sort
functions as available choices for this user option.
Suggested by Robert Pluim <rpluim@gmail.com>.
(cherry picked from commit
0b0bf7c07f2ecaca1e9b25d72139af0dd7e49832)
If the completion table that produces the candidates already specifies a
sort function, it takes precedence over this option."
- :type 'function
+ :type '(choice
+ (function-item :tag "Sort alphabetically"
+ minibuffer-sort-alphabetically)
+ (function-item :tag "First by length, then alphabetically"
+ minibuffer--sort-by-length-alpha)
+ (function-item :tag "Disable sorting" identity)
+ (function :tag "Custom sort function"))
:version "31.1")
(defface completion-preview