Sure, via Macros -> Sort Lines. This is a sample JavaScript macro and requires Java 6 or newer to work.

You can see how it's implemented, so you can use it as an example to create your own macros, via Macros -> Edit Macros -> Double-clicking on "Sort Lines", and clicking the "Edit Script" button in the popup menu. This is the "live" copy of the script that is executed when you select the "Sort Lines" menu item.

Sure, via Macros -> Sort Lines. This is a sample JavaScript macro and requires Java 6 or newer to work.

You can see how it's implemented, so you can use it as an example to create your own macros, via Macros -> Edit Macros -> Double-clicking on "Sort Lines", and clicking the "Edit Script" button in the popup menu. This is the "live" copy of the script that is executed when you select the "Sort Lines" menu item.