Function: projectile-doctor--sort-findings
projectile-doctor--sort-findings is a byte-compiled function defined
in projectile.el.
Signature
(projectile-doctor--sort-findings FINDINGS)
Documentation
Return FINDINGS ordered warnings first, then info, then ok.
The order within each severity is preserved, so the report still reads in the order the checks are written.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-doctor--sort-findings (findings)
"Return FINDINGS ordered warnings first, then info, then `ok'.
The order within each severity is preserved, so the report still reads
in the order the checks are written."
(let ((rank (lambda (finding)
(pcase (plist-get finding :severity) ('warn 0) ('ok 2) (_ 1)))))
(sort (copy-sequence findings)
(lambda (a b) (< (funcall rank a) (funcall rank b))))))