FixThatAppAll Tools
Writing

Line Sorter

Sort text lines alphabetically or reverse order.

How This Tool Works

The Line Sorter orders a list of text lines alphabetically, numerically, or by length. It supports ascending (A–Z, 0–9) and descending (Z–A, 9–0) order, case-sensitive and case-insensitive sorting, and natural sort order (where '10' comes after '9' instead of before it). Common uses: sorting CSS property lists for readability, ordering import statements, alphabetizing configuration keys, sorting word lists for dictionary tools, and organizing data before deduplication.

How to Use

  1. Paste your lines in field A (one item per line).
  2. Click Run. The output shows lines sorted in ascending alphabetical order.
  3. For descending order or numeric sort, use the mode selector before running.
  4. For natural sort (files: file1, file2, file10 in that order): use natural sort mode.

Common Questions

What is natural sort and when should I use it?

Natural sort treats embedded numbers as numeric values. Lexicographic (alphabetic) sort orders '10' before '2' because '1' < '2'. Natural sort orders '2' before '10' because 2 < 10. Use natural sort for file names, version numbers, and any list mixing text with numbers.

Is the sort case-sensitive by default?

Most sorters sort uppercase before lowercase (A–Z then a–z) in strict ASCII order. Case-insensitive sort ignores case so 'apple', 'Apple', and 'APPLE' are treated as equivalent.

Can I sort by line length?

Yes — use length sort mode to order from shortest to longest line (or longest to shortest). Useful for identifying outlier entries in a list or formatting columnar text.