Sort Lines

Sort text lines alphabetically (A-Z, Z-A), by length, or randomize their order.

Input
Result

Frequently Asked Questions

How does alphabetical sorting work?

Lines are compared using locale-aware comparison which correctly handles accented characters and non-English alphabets.

What does sort by length do?

Lines are sorted by their total character count, either from shortest to longest or longest to shortest.