Sort Lines Alphabetically (Or by Length, Number)

Sort any text block by lines — alphabetical (case-sensitive or not), length, numerically (for lists of numbers), or reverse. Optional deduplication. Useful for cleaning todo lists, sorting CSV columns, organizing imports.