Function: hierarchy--sort-roots

hierarchy--sort-roots is a byte-compiled function defined in hierarchy.el.gz.

Signature

(hierarchy--sort-roots HIERARCHY SORTFN)

Documentation

Compute, sort and store the roots of HIERARCHY.

SORTFN is a function taking two items of the hierarchy as parameter and returning non-nil if the first parameter is lower than the second.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/hierarchy.el.gz
(defun hierarchy--sort-roots (hierarchy sortfn)
  "Compute, sort and store the roots of HIERARCHY.

SORTFN is a function taking two items of the hierarchy as parameter and
returning non-nil if the first parameter is lower than the second."
  (setf (hierarchy--roots hierarchy)
        (sort (hierarchy--compute-roots hierarchy)
              sortfn)))