Function: hyrolo-sort-level
hyrolo-sort-level is an interactive and byte-compiled function defined
in hyrolo.el.
Signature
(hyrolo-sort-level LEVEL-REGEXP &optional MAX-GROUPINGS)
Documentation
Sort groupings of entries in current buffer at hierarchy level LEVEL-REGEXP.
To a maximum of optional MAX-GROUPINGS. Nil value of MAX-GROUPINGS means all groupings at the given level. LEVEL-REGEXP should simply match the text of any rolo entry of the given level, not the beginning of a line (^); an example, might be (regexp-quote "**") to match level two. Return number of groupings sorted.
Current buffer should be an editable HyRolo source location, not the match buffer.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-sort-level (level-regexp &optional max-groupings)
"Sort groupings of entries in current buffer at hierarchy level LEVEL-REGEXP.
To a maximum of optional MAX-GROUPINGS. Nil value of MAX-GROUPINGS means all
groupings at the given level. LEVEL-REGEXP should simply match the text of
any rolo entry of the given level, not the beginning of a line (^); an
example, might be (regexp-quote \"**\") to match level two. Return number
of groupings sorted.
Current buffer should be an editable HyRolo source location, not
the match buffer."
(interactive "sRegexp for level's entries: \nP")
;; Divide by 2 in next line because each asterisk character is preceded
;; by a regexp-quote backslash character.
(outline-hide-sublevels (/ (length level-regexp) 2))
(let ((sort-fold-case t))
(hyrolo-map-level
(lambda (start end) (hyrolo-sort-lines nil start end))
level-regexp
max-groupings)))