Sort Lines

Put any list in order. It is sorted on your device.

Your files stay with you. Your files never leave your browser. This tool runs on your device: nothing is uploaded to our servers, so there is nothing for us to store or see.

How to use it

  1. Paste your lines, one per line.
  2. Choose the sort order and options.
  3. Copy the sorted list.

Where it helps

Product and price lists

Sort items alphabetically or by price before sharing.

Names and attendance

Put a class or team list in A to Z order.

Random order

Shuffle a list of names or questions fairly.

Good to know

  • Stays in your browser

    Your text is processed on your device and never sent to our servers.

  • Natural sort

    Reads numbers inside text, so item 2 comes before item 10.

  • Lines without numbers

    Go to the end when sorting by number.

  • Hindi sorting

    Uses your browser's rules for the language.

Questions people ask

How do you sort a list alphabetically?

Paste your lines, one per line, choose A to Z, Z to A, by number, by length, reverse or shuffle, then copy the sorted list. Natural sort puts item 2 before item 10, and the shuffle uses your browser's secure random generator. Hindi sorts too, and nothing leaves your device.

  • 6 orders A-Z to shuffle. Plus natural sort.
  • Numbers First number per line. Smart sorting.
  • Fair shuffle Secure random. Fisher-Yates.
  • 0 Data sent. In your browser.
How do I sort lines alphabetically?
Paste your list with one item per line, choose A to Z, and copy the sorted list. Choose Z to A for reverse alphabetical order. The sort happens instantly in your browser, without uploading anything or creating an account, and you can sort the same list several ways.
What is natural sort?
It reads numbers inside text as numbers, so 'item 2' comes before 'item 10'. Plain A to Z sorting compares character by character, which would put 'item 10' first because 1 comes before 2. Natural sort is better for file names, invoice numbers and room numbers.
How does number sorting handle lines with text?
It uses the first number found on each line, so 'Plan B ₹2,999' sorts by 2,999. Lines with no number go to the end, and the tool tells you how many there were. That's handy for sorting price lists or scores mixed with names. Check those lines.
Is the shuffle really random?
Yes. It uses your browser's secure random number generator with a Fisher-Yates shuffle, so every order is equally likely. That makes it fair for things like presentation order, seating plans or question order in a quiz. Shuffle again for a different order. Every press gives a fresh, independent order.
Does it sort Hindi?
Yes, using the browser's own sorting rules for your language, so Hindi lists sort in a sensible order. The exact order can differ slightly between browsers, because each implements language rules a little differently. Mixed Hindi and English lists sort with each script grouped sensibly.
Can I sort by line length?
Yes. Sort by length puts the shortest lines first, or the longest first in reverse. It's useful for spotting very long entries in a list, such as product names that won't fit a label, or for tidying lists visually. It's quick to switch back. Long product names stand out at once.
Can I reverse a list without sorting?
Yes. Reverse simply flips the current order, so the last line comes first, without sorting alphabetically. That's useful for lists exported newest-last when you want newest-first. It's also useful for turning a numbered list upside down, so the last step reads first. Only the order of lines changes.
Is my list uploaded?
No. Sorting happens in your browser, so names, numbers and other details stay on your device. Nothing is stored after you close the page. Nothing is stored afterwards, and there's no account, so names and numbers in the list stay with you. That keeps personal data safe.
Does it remove duplicates?
No, sorting keeps every line. Use Remove duplicate lines before or after sorting if you want each item only once. Sorting first can make duplicates easier to see, because identical lines end up next to each other. Run both for a clean list. Sorted lists make repeats easy to spot.
Is sorting case-sensitive?
Sorting uses your browser's language-aware comparison, which generally treats capital and small letters sensibly rather than putting all capitals first. If your list mixes styles, the case converter can make it consistent first. Natural order applies too, so numbers in text sort sensibly. Results are predictable and easy to check.
How many lines can I sort?
Thousands of lines sort instantly, and much longer lists work too, depending on your device. For very large lists, a computer is faster than a phone, but most everyday lists finish immediately. Close other tabs if a very long list feels slow on a phone.
Can I sort a column from a spreadsheet?
Yes. Copy the column, paste it here, sort and paste it back. Note that sorting one column alone separates it from the other columns, so for whole tables, use the spreadsheet's own sort to keep rows together. Copy it back carefully. Check row alignment before pasting back.
Can I use it to randomise quiz questions?
Yes. Paste the questions one per line and shuffle them. Each shuffle gives a new fair order, which helps when creating different versions of a test or deciding the order of presentations. Each shuffle uses secure random numbers, so no order is more likely than another.
Does it work on a phone?
Yes. Paste a list on your phone, choose the order and copy the result. It's quick for sorting names or items shared in a WhatsApp group. No app is needed, and your text stays on the phone the whole time, so it's handy for quick jobs away from a computer.
Is it free?
Yes. Sorting lines is free, with no sign-up and no limit. It's part of the free text tools from Marketiism, alongside remove duplicate lines and the random name picker. Nothing is added to your text, there's no daily limit, and you can use it for business and client work.

Want this inside your own account?

Marketiism keeps your invoice numbers, GST reports, UPI payment links and WhatsApp reminders in one place. Leave your details and we'll call to set it up for your business, or start the trial yourself.

Start free trial

We use this only to contact you about Marketiism. No spam.

More Text tools

Text Diff Checker

Compare two texts line by line and see what was added, removed or changed side by side.

Word Counter

Count words, characters, sentences and paragraphs, with reading time and your most used words.

Character Counter

Check your text against limits for X, Instagram, WhatsApp, Meta ads, Google Ads and SMS.

Case Converter

Convert text to upper, lower, title, sentence, camel, snake or kebab case.

Try it on your own business for two weeks.

14 days free, no card. If you get stuck setting up WhatsApp, we'll get on a call and do it with you.