Text tools

Sort Lines

Put lines of text in A-to-Z order, by length, or shuffled, with numbers sorted the natural way. In your browser

Your text14 words · 85 characters
  • Free
  • Never uploaded
Your textSample text: click to replace it
14 words85 characters7 lines
  • Free
  • Never uploaded

What it does

Any list, in order

Paste a list of names, exhibits, case numbers or anything else, one item a line, and sort it A to Z, Z to A, shortest or longest first, or shuffle it. Numbers sort the way people expect (Item 2 before Item 10), and upper and lower case can be ignored. Select some lines to sort just those.

How it works

Sort lines in three steps

  1. Paste your list

    One item a line. Click the text box and paste, or open a .txt or .csv file.

  2. Choose an order

    A to Z, Z to A, by length, shuffled or reversed.

  3. Click Sort lines

    The list is sorted at once. Remove repeated lines next, if you need to.

Why Legalfina

One free editor for every text job

  • Never uploaded

    Your text stays in your browser. It isn't sent to our server or anyone else's, and it isn't saved.

  • Instant, and undoable

    Every count updates as you type, and every change can be undone with Ctrl+Z (⌘+Z on a Mac).

  • Free, no sign-up

    No account, no limits, no ads in your way.

  • Every tool on the same text

    Clean it up, change its case, sort it and count it without copying it from page to page.

Questions

Questions about sorting lines

Are numbers sorted correctly?

Yes. Numbers inside lines are sorted by value, so “Exhibit 2” comes before “Exhibit 10”.

Does upper or lower case change the order?

Not by default. Switch off Ignore upper and lower case to sort them apart.

Can I sort by last name?

If the list is written “Last, First”, sorting A to Z sorts by last name. Find and replace can turn “First Last” into “Last, First” first.

What happens to empty lines?

They're kept and sorted with the rest, unless you switch on Remove empty lines.

Is my text uploaded or saved?

No. Everything happens in your browser. Your text is never sent to Legalfina or anyone else, and it's gone when you close the page.

Filing papers with a California court?

Legalfina prepares your court forms, checks them, and files them for you, with an attorney's review when you want one.

Get started



© 2021 - 2026 Legalfina Inc. All rights reserved.

LDA License #172 (Alameda County)
35111F Newark Blvd #314, Newark, CA

Disclaimer: Communications between you and Legalfina are protected by our Privacy Policy but not by the attorney-client privilege or as work product. Legalfina provides access to independent attorneys and self-help services at your specific direction. We are not a law firm or a substitute for an attorney or law firm. We cannot provide any kind of advice, explanation, opinion, or recommendation about possible legal rights, remedies, defenses, options, selection of forms or strategies. Your access to the website is subject to our Terms of Use.