Function: erc--sort-modules
erc--sort-modules is a byte-compiled function defined in erc.el.gz.
Signature
(erc--sort-modules MODULES)
Documentation
Return a copy of MODULES, deduped and led by sorted built-ins.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--sort-modules (modules)
"Return a copy of MODULES, deduped and led by sorted built-ins."
(let (built-in third-party)
(dolist (mod modules)
(setq mod (erc--normalize-module-symbol mod))
(cl-pushnew mod (if (get mod 'erc--module) built-in third-party)))
`(,@(sort built-in #'string-lessp) ,@(nreverse third-party))))