Alphabetical Order Sorter for Lists and Lines
Sort lines alphabetically, numerically, or randomly, with optional deduplication.
About Line Sorter & Deduplicator
Line Sorter & Deduplicator arranges a list that has one item per line. Choose a Sort order from the menu: A → Z, Z → A, Numeric or Random shuffle. Tick Remove duplicates to drop repeated lines first, then click Sort. The result appears in the lower box, and Copy places it on your clipboard.
It is useful for putting names, cities or product codes into alphabetical order, ranking prices or marks pasted from a spreadsheet column, tidying keyword lists for SEO work, and shuffling names to decide a presentation order, a seating plan or a small giveaway. Each line is treated as one whole item and stays intact while the list is reordered.
Sorting follows your browser's text-comparison rules, so capital and small letters are interleaved and the order can vary a little between browsers and language settings. Remove duplicates compares lines exactly, with no case-insensitive or trim option. Numeric reads only the number at the start of each line; the tool cannot sort by a column or by a later word in the line.
How to use Line Sorter & Deduplicator
- Paste the lines you want ordered into the top box, one item per line.
- Open the Sort order menu and choose A → Z, Z → A, Numeric or Random shuffle.
- Tick Remove duplicates if you want repeated lines dropped before sorting.
- Click Sort.
- Read the result in the bottom box. To try a different order, change the menu and click Sort again.
- Click Copy to take the sorted list away.
Tips for best results
- Use Numeric for numbers rather than A → Z. Sorted as text, 10 comes before 2, while Numeric orders by value. It runs from smallest to largest only.
- Numeric reads the number at the start of a line, so '5 apples' counts as 5. A figure with a thousands separator such as 1,500 is read as 1, and a line that starts with text, like Rs. 500, counts as 0. Remove commas and currency labels first.
- Digits written in Urdu or Arabic-Indic form, like ۱۲۳, are not recognised by Numeric and count as 0. Use ordinary 0 to 9 digits.
- For Urdu text, A → Z uses the browser's default collation, which can differ from the traditional Urdu alphabet order for some letters. Test a short sample before sorting a long list.
- Random shuffle gives a different order on every click, using the browser's ordinary random-number generator. It suits speaking order or a casual giveaway, but not a draw that must be auditable or secure.
Frequently asked questions
What is a line sorter?
A line sorter puts the lines of a list into order, treating each line as one item. This one sorts A to Z, Z to A, by number or at random, and can drop repeated lines first. Everything runs in your browser.
How do I sort a list alphabetically online?
Paste the list with one item per line, choose A to Z in the Sort order menu, tick Remove duplicates if you want repeats dropped, and click Sort. Copy the result from the bottom box.
Can it sort numbers correctly, not just alphabetically?
Yes, choose the Numeric option to sort lines by their numeric value instead of as plain text.
Can I shuffle a list randomly?
Yes, the Random option shuffles the line order — handy for randomizing names or raffle entries.
Does Remove duplicates ignore case or spaces?
No. Lines must match exactly, so 'Apple', 'apple' and 'apple ' all stay. For case-insensitive or trimmed matching, run the list through the Duplicate Line Remover first, then sort it.
How do I sort numbers from highest to lowest?
Numeric only goes upward. Sort with Numeric, copy the result into the Text Reverser, and choose Lines to flip the order.
Where do blank lines end up?
A blank line is an empty item, so it sorts to the top in A → Z and counts as 0 in Numeric. With Remove duplicates ticked, only one blank line remains.
Is A → Z case-sensitive?
Not in the usual sense. The browser's locale-aware comparison places 'apple' and 'Apple' next to each other instead of putting all capitals first, and accented letters such as É sit beside their plain versions.