Function: corfu-history--sort-predicate

corfu-history--sort-predicate is a byte-compiled function defined in corfu-history.el.

Signature

(corfu-history--sort-predicate X Y)

Documentation

Sorting predicate which compares X and Y.

Source Code

;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu-history.el
(defun corfu-history--sort-predicate (x y)
  "Sorting predicate which compares X and Y."
  (or (< (cdr x) (cdr y))
      (and (= (cdr x) (cdr y))
           (corfu--length-string< (car x) (car y)))))