Sorting in Emacs

In this article, we will explore various hands-on experiments using Emacs commands to sort text in different ways. We will provide concrete examples to illustrate how these commands work. Our first set of experiments focuses on sorting lines. We simulate a record for each line, representing details about different individuals. We can sort lines alphabetically or in reverse order by using specific key sequences. We can also sort lines by specific fields or numerically by a field. Additionally, we can sort columns or paragraphs alphabetically. It is important to note that there are limitations when sorting by specific fields using regular expressions. The article concludes by mentioning additional resources for further exploration of sorting commands in Emacs.

https://susam.net/blog/sorting-in-emacs.html

To top