Writing

Line Sorter

Reorder any list of lines with a single click. Sort A to Z or Z to A, order by line length, reverse the existing order, or shuffle randomly. Optional toggles let you sort case-insensitively and strip blank lines first. Great for tidying lists, keywords, and exports.

Examples

Input · A to Z order.
banana
apple
cherry
Output
apple
banana
cherry

How to use Line Sorter

Paste your lines
Add the list or block of text you want to reorder.
Choose an order
Pick A to Z, Z to A, by length, reverse, or shuffle.
Apply options
Optionally sort case-insensitively and remove blank lines.

Why use this tool

Five ordering modes including length and shuffle
Natural, numeric-aware alphabetical sorting
Case-insensitive option for cleaner results
Remove blank lines while you sort

Frequently asked questions

Yes. Alphabetical sorting is numeric-aware, so item2 comes before item10 as expected.

It uses a Fisher-Yates shuffle for an unbiased random order each time you select it.

Discussion

Share feedback or ask a question about this tool.

Comments are stored to a moderated queue via the API.