Sort lines alphabetically, numerically, by length, or randomly.
Sort lines of text in various ways: alphabetically (A-Z or Z-A), numerically, by line length, or randomly shuffled. You can also reverse the line order. Handles mixed text and numbers gracefully.