How to use Text sorter
- 1
Paste your lines into the Input box, one item per line.
- 2
Pick a sort order, such as A to Z, natural order, by number or shortest first.
- 3
Copy or download the sorted list. For a random order, press "Shuffle again" until you are happy.
What this tool does
The text sorter puts lines of text in order. Use it for names, keywords, product codes, file lists, bibliography entries or anything else with one item per line.
Features
- Eight orders. A to Z, Z to A, natural, by number, shortest first, longest first, reversed, and random.
- Language-aware. Accented letters and non-Latin alphabets sort the way readers of that language expect.
- Options to ignore case, trim spaces at line ends and drop empty lines.
- Stable results. Lines that tie keep their original order.
- Fair shuffle using the browser's secure random generator.
Limits
- Each line is sorted as one item. To sort words within a line, put each word on its own line first.
- "By number" uses only the first number in a line.
- To remove repeated lines as well, use remove duplicate lines.
Where your text is processed
This tool works in your browser: what you paste is processed on your own device, so it isn't sent to our server for this tool. Some other tools on UtiloNest do use our server, and their pages say so.
Frequently asked questions
What is the difference between A to Z and natural order?
A to Z compares text character by character, so "item 10" comes before "item 2" because 1 is smaller than 2. Natural order reads numbers as numbers, so "item 2" comes before "item 10", which is what people expect for file names, chapters and versions.
How does "By number in the line" work?
It finds the first number in each line, including negatives, decimals and thousands separators like 1,200, and sorts by its value. Lines without any number keep their order and go to the end.
Does it sort accented letters and other languages correctly?
Yes. Sorting uses your browser's language rules, so é sorts with e, and Greek, Cyrillic and other scripts follow their own alphabetical order.
Is the shuffle really random?
Yes. It uses the Fisher-Yates algorithm with your browser's cryptographic random number generator, so every order is equally likely. That makes it fair for picking a winner or ordering presentations.
Where is my text processed?
In your browser. The sorting runs on your own device, so your list isn't sent to our server.