Skip to content
DevKOM

Sort Lines

Sort any list line by line. Choose alphabetical, natural (so item2 comes before item10), numeric or by length, in ascending or descending order.

Order
Sorted lines

How to sort lines

  1. Paste the lines you want to sort.
  2. Choose the sort method and direction.
  3. Decide whether case matters and whether empty lines are kept.
  4. Copy the sorted result.

Frequently asked questions

What is natural sort?

Natural sort compares numbers inside text by value, so 'file2' comes before 'file10'. Plain alphabetical sort would put 'file10' first because '1' comes before '2'.

How are non-numeric lines handled in numeric sort?

Lines are sorted by the first number they contain. Lines without a number are placed at the end, in alphabetical order.

More in Text Tools.