Text Line Sorter

Sort a list one line at a time in ascending or descending order. Natural sorting puts File 2 before File 10 and keeps each original line intact.

Workspace

Sorted lines

Your result will appear here.

How to use it

  1. Paste a list with one item per line and choose your sort direction.
  2. Use natural sorting for filenames or labels with numbers. Choose whether case distinctions and blank lines matter.
  3. Sort the list and copy the result.

Worked example

Input
File 10
File 2
File 1
Output
File 1
File 2
File 10

Frequently asked questions

What is natural sorting?

Natural sorting compares consecutive digits as a number. For example, File 10 comes after File 2 in ascending natural order.

Does sorting remove duplicate items?

The sorter keeps repeated items. Use Remove Duplicate Lines before or after sorting to keep only one copy of each line.