(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://ruby-synth.fun
- https://github.com/halfbyte/rubysynth {A..C}{0..3}
"This sequence creates every combination of A to C and 0 to 3—i.e. A0, A1, A2, A3, B0, B1, etc." echo {a..z..2}
a c e g i k m o q s u w y
"The ..2 bit tells the expansion to only output every second letter."
(I have no affiliation with the above channel)