Function: consult-eglot--compare-responses
consult-eglot--compare-responses is a natively compiled function
defined in consult-eglot.el.
Signature
(consult-eglot--compare-responses A B)
Documentation
Predicate for comparing two responses. If scores are the same, sort lexicographically.
Source Code
;; Defined in /nix/store/3v6wy8b5xagm658m9sa8vhwzkykl5mv6-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-eglot-20260613.1443/consult-eglot.el
(defun consult-eglot--compare-responses (a b)
"Predicate for comparing two responses. If scores are the same, sort
lexicographically."
(let ((score_a (cl-getf a :score 0))
(score_b (cl-getf b :score 0)))
(if (= score_a score_b)
(let ((name_a (cl-getf a :name))
(name_b (cl-getf b :name)))
(string< name_a name_b))
(> score_a score_b))))