Function: consult--buffer-sort-alpha-current
consult--buffer-sort-alpha-current is a natively compiled function
defined in consult.el.
Signature
(consult--buffer-sort-alpha-current BUFFERS)
Documentation
Sort BUFFERS alphabetically, put current at the beginning.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--buffer-sort-alpha-current (buffers)
"Sort BUFFERS alphabetically, put current at the beginning."
(let ((buffers (consult--buffer-sort-alpha buffers))
(current (current-buffer)))
(if (memq current buffers)
(cons current (delq current buffers))
buffers)))