Function: minibuffer-sort-alphabetically

minibuffer-sort-alphabetically is a byte-compiled function defined in minibuffer.el.gz.

Signature

(minibuffer-sort-alphabetically COMPLETIONS)

Documentation

Sort COMPLETIONS alphabetically.

COMPLETIONS are sorted alphabetically by string-lessp.

This is a suitable function to use for completions-sort or to include as display-sort-function in completion metadata.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun minibuffer-sort-alphabetically (completions)
  "Sort COMPLETIONS alphabetically.

COMPLETIONS are sorted alphabetically by `string-lessp'.

This is a suitable function to use for `completions-sort' or to
include as `display-sort-function' in completion metadata."
  (sort completions #'string-lessp))