5 ms·
I found this on the Emacs Wiki [1]. It seems to work: (defun sort-symbols (reverse beg end) "Sort symbols in region alphabetically, in REVERSE if neg
by kroger 3y ago
I found this on the Emacs Wiki [1]. It seems to work:
(defun sort-symbols (reverse beg end)
"Sort symbols in region alphabetically, in REVERSE if negative.
See `sort-words'."
(interactive "*P\nr")
(sort-regexp-fields reverse "\\(\\sw\\|\\s_\\)+" "\\&" beg end))
[1]: https://www.emacswiki.org/emacs/SortWords https://www.emacswiki.org/emacs/SortWords