Alphabetical order sorter for text lines

Sort lines alphabetically in the selected language, ascending or descending, with optional natural number ordering.

Your inputs stay herePUFFINMINT

Set your data

Set your data

Paste one item per line and choose a language and options. Duplicate lines are retained; use the dedicated tool to remove them.

Result

The result updates as you type.

The values you enter stay on this page. Reloading or closing it clears them.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use the tool

  1. Paste one item per line and choose a language and options.
  2. Duplicate lines are retained; use the dedicated tool to remove them.
  3. Change the language, direction or numeric order to compare the sorted list with the original straight away.

Method and principles

Comparison follows the selected language’s collation rules.

Natural sorting compares digit sequences as numbers.

Practical example

With natural sorting, file2 comes before file10. With numeric sorting disabled, file10 may come before file2.

Input
  • Original text: item10 item2 item1
  • Sorting language: English
  • Descending order: No
  • Natural number order (2 before 10): Yes
  • Ignore letter case: No
Result
item1 item2 item10

Options and limits

Whitespace and blank lines are not removed. Ignoring case still distinguishes accents; equivalent items retain their original order. Browser versions can differ in collation details.

Example details

Example details
ParameterValue
Characters including whitespace18

Limits and checks

Limits and checks
ParameterValue
Original text≤ 100000 characters

Favorites