Line Sorter

Sort lists of lines for product IDs, keywords, notes or data cleanup tasks.

Sorted lines

How to use this tool

Enter the required values in the labeled fields. Results update in your browser and are announced for assistive technologies. Use realistic measurements and verify important outcomes before acting on them.

Formula or logic

Alphabetic, length, numeric, reverse and shuffle modes run locally. Numeric sorting parses leading numbers where possible.

Example calculation

Example: 10 apples and 2 bananas sort numerically as 2 bananas before 10 apples.

Frequently asked questions

Can I remove duplicates while sorting?

Yes. Enable remove duplicates.

How are non-numeric lines handled?

They are placed after numeric lines in numeric modes.

Related tools

Text Tools

Duplicate Line Remover

Remove repeated lines with case, trim, empty-line, keep-first/last and sorting options.