Function: cape-wrap-sort

cape-wrap-sort is an autoloaded and byte-compiled function defined in cape.el.

Signature

(cape-wrap-sort CAPF &optional SORT)

Documentation

Call CAPF and add SORT function as completion metadata.

If the SORT argument is nil or not given, the completion UI will use its own default sorting algorithm. This function can be used as an advice around an existing Capf.

Source Code

;; Defined in ~/.emacs.d/elpa/cape-20260804.2303/cape.el
;;;###autoload
(defun cape-wrap-sort (capf &optional sort)
  "Call CAPF and add SORT function as completion metadata.
If the SORT argument is nil or not given, the completion UI will use
its own default sorting algorithm.  This function can be used as an
advice around an existing Capf."
  (cape-wrap-properties
   capf
   :display-sort-function sort
   :cycle-sort-function sort))