Sort Lines

Sort text lines alphabetically, in reverse order or with natural numeric ordering.

Your input is processed in this browser and is not uploaded.

Sort Lines

Order a list without opening a spreadsheet. Each complete line is one sortable item; repeated entries are retained.

How to use it

  1. Paste one item per line.
  2. Choose Alphabetical ascending, Alphabetical descending or Natural numeric order.
  3. Select Sort lines and copy the resulting list.

Worked example

For item10, item2, item1, natural numeric order produces item1, item2, item10. Alphabetical comparison can put item10 before item2 because it compares text rather than treating the embedded number naturally.

Limits and troubleshooting

Comparison uses the browser’s English locale collation, not raw code-point order or a configurable language. Whitespace remains part of each line. Blank lines and duplicates are not removed. Input limit: 100,000 UTF-16 code units.

Frequently asked questions

Does sorting remove duplicate entries?

No. Use Remove Duplicate Lines separately when both operations are required.

Can this sort CSV by a column?

No. It sorts complete lines. Quoted multiline CSV records require a CSV-aware application for column sorting.