Line Sorter

Sort lines alphabetically with multiple sorting options including case sensitivity, reverse order, and custom sorting criteria

About Line Sorter

Overview

The Line Sorter is a tool that sorts lines of text alphabetically. It has many options, like case-sensitive sorting, reverse order, and numeric sorting. It can also handle whitespace and empty lines. This is great for organizing lists, cleaning up data, and any other job where you need your text to be in alphabetical order.

Features

  • Real-time line sorting with live mode.
  • Case-sensitive and case-insensitive sorting.
  • Reverse order sorting (Z to A).
  • Trims whitespace before sorting.
  • Option to remove empty lines.
  • Numeric sorting for numbers.
  • Shows detailed statistics.
  • Lets you upload files up to 100MB.
  • One-click copy to clipboard.
  • Swap input and output easily.
  • Supports over 40 character encodings.
  • All work is done in your browser to keep your data private.
  • Has a dark mode and a responsive design.

How to Use

  1. Put your text in the input box.
  2. Choose a character set if you need to. UTF-8 is a good default.
  3. Set your sorting options, like case sensitivity and reverse order.
  4. Use "Live mode" to see the changes as you type.
  5. Click "SORT LINES" to process your text.
  6. See the sorted result in the output box.
  7. Look at the statistics to see what was changed.
  8. Use the "Swap Input/Output" button to move the result back to the input.
  9. Copy the result or upload files up to 100MB.

FAQ

How does numeric sorting work?

Numeric sorting treats numbers as values, not as text. For example, in alphabetical sorting, "10" comes before "2" because the character "1" comes before "2". With numeric sorting, the tool knows that 10 is bigger than 2, so it sorts them correctly with "2" before "10".

What does "case sensitive" sorting mean?

In case-sensitive sorting, uppercase letters are treated as different from lowercase ones. Usually, uppercase letters come first. For example, "Apple" would come before "apple". If case sensitivity is off, "Apple" and "apple" are treated as the same.

Can I sort in reverse order?

Yes, you can. Just turn on the "Reverse Order" option. This will sort the lines from Z to A, or from the largest number to the smallest.