An alphabetical order tool sorts complete plain-text lines from A to Z or Z to A, and Text Sorter processes up to 50,000 logical lines. It is made for a list whose items are separated by line breaks. Paste the text, choose the comparison settings, run the sort, inspect the complete preview, and save the result as a UTF-8 TXT file. The output remains line-oriented rather than being converted into a spreadsheet or another structured format.

To alphabetize a straightforward list of names, filenames, labels, or inventory values, put one complete item on each line. The tool sorts whole lines; it does not rearrange words inside a line or parse comma-separated values. The Text Sorter tool keeps the result line-oriented while providing explicit controls for direction, case, numbers, and cleanup. Its cleanup, sorting, preview, and download-creation steps happen locally in the browser, so the pasted text is not uploaded to Lizely.

alphabetical order tool
Alphabetical Order Tool: Sort Lines A to Z

What an alphabetical order tool handles

“Alphabetical” can be more nuanced than a raw character-code sort. Text Sorter uses the browser’s English Intl.Collator for linguistic browser collation; it is not a raw Unicode code-point or byte sort. That distinction matters when you compare the result with another program, because database ORDER BY behavior, operating-system filename order, spreadsheet locale settings, and another programming language can each use different ordering rules.

Text Sorter also uses a stable sort. With case sensitivity off, lines that differ only by capitalization compare as equivalent, and their original relative order remains. With case sensitivity on, case participates in the comparison. Descending order reverses the comparison result while still retaining the original relative order for equivalent lines, so it is not simply a reversed ascending array.

Use plain text with one logical item per line. The tool recognizes CRLF, standalone CR, and LF as line boundaries. A line that merely looks wrapped in the preview is still one logical line; visual wrapping never creates extra rows. This makes the line count a more reliable basis for checking the operation than the number of visible screen rows.

Sort a list in four steps

  1. Paste the line-oriented text. Put one complete list item on each line and keep the source as plain text. The accepted maximum is 1,000,000 UTF-16 code units and 50,000 logical lines. Input must be nonempty, malformed UTF-16 surrogate sequences are rejected, and an over-limit input is rejected before sorting with no partial output returned.
  2. Choose direction, case, and numeric comparison. Select ascending order for A to Z or descending order for Z to A. Decide whether comparison should be case-sensitive, and turn on Natural number order only when digit runs should compare numerically. Enable only the cleanup controls you want: trimming, empty-line removal, and exact-duplicate removal.
  3. Sort the lines and verify the preview. Run the sort, then compare the reported original logical line count with the final line count. Read the exact result in the complete preview rather than judging from the first visible screen. Sorting itself does not change the number of lines; a difference comes from enabled empty-line or exact-duplicate removal. If you change the input or any option, the old output clears immediately.
  4. Download the TXT result. After the preview looks right, use the download action to save a UTF-8 text file. A temporary Blob URL is created only after that click and is scheduled for immediate revocation once the browser starts the file transfer.

Set the comparison rules

Direction, case behavior, and numeric behavior are separate choices. Treat them as settings that define the order you need, rather than assuming every A-to-Z list follows the same sequence in every application.

Control What it changes Boundary to keep in mind
Direction Ascending applies the collator from lower to higher order; descending reverses the comparison result. Equivalent lines retain their original relative order in either direction.
Case sensitivity Off makes case-only differences compare as equivalent; on makes case participate in collation. This changes comparison, not the exact-duplicate rule.
Natural number order On compares digit runs numerically; off compares them as ordinary text under the same collator. It does not parse decimals, dates, versions, units, or signed expressions as structured data.

Natural number order is useful for filenames and numbered labels because it prevents a simple digit sequence from obscuring the intended numeric sequence. For example, with the option enabled, file2 sorts before file10 instead of after it. With the option off, those values are compared as ordinary text under the same collator. The control improves number ordering inside labels; it does not turn the tool into a parser for dates, quantities, or versions.

Clean up lines deliberately

Cleanup controls are independent, but their execution order is fixed: trim first, remove empty lines next, remove exact duplicates next, and sort last. Knowing that sequence makes it easier to predict what the final count and the retained text will look like.

  • Trim every line removes leading and trailing Unicode whitespace before the other cleanup steps and the sort. It does not collapse spaces inside a line, so internal spacing remains untouched.
  • Remove empty lines runs after optional trimming. A whitespace-only line becomes empty and is removed only when trimming and empty-line removal are both enabled. Without trimming, a line containing spaces is not treated as empty.
  • Remove exact duplicates runs after optional trimming and empty-line removal but before sorting. Exact means JavaScript string equality: “Apple” and “apple” remain separate even when case-insensitive comparison treats them as equivalent. The first occurrence is kept, later exact copies are removed, and no fuzzy matching or Unicode normalization is applied.

If the final count is lower than the original count, check these cleanup controls rather than assuming the sort lost data. If a line’s leading or trailing whitespace matters, leave trimming disabled and inspect the preview closely. Exact duplicate removal is deliberately literal: it does not merge near matches, case variants, or canonically equivalent spellings.

Review the result and save it

The result reports both the original logical line count and the final line count, and the complete sorted output is rendered for review. Use the preview to confirm the order, the presence of expected lines, and the effect of cleanup before downloading. A count difference is caused by empty-line or exact-duplicate removal, not by sorting itself.

Input line endings can be mixed: CRLF, standalone CR, and LF are all recognized. The downloaded result uses LF between sorted lines, so the output has a consistent line-ending style. Except when trimming is explicitly selected, each retained line’s character content stays unchanged. The original line-ending style, however, is normalized rather than carried through. Visual wrapping in the preview remains a display feature and does not insert logical breaks.

The sorting operation uses no remote service, external dataset, random input, or account history. Given the same accepted text, browser collation implementation, and options, it produces the same line sequence. That makes the preview useful for checking a repeated workflow, while local processing keeps the source text on the device rather than sending it to a server.

Use line sorting within its limits

Text Sorter suits word lists, filenames, labels, simple inventory values, test data, copied table columns, and line-oriented notes. Those uses share a clear rule: one meaningful item belongs on one line. A list that is already organized as a table needs more care.

The tool is not CSV-aware. A CSV row can contain a quoted line break, so sorting individual physical lines can corrupt the record structure. If quoting, headers, or multiple columns matter, use a format-aware table tool instead. Similarly, prepare the list as one item per line before sending it through this workflow; do not expect a single comma-separated line to be split automatically.

For a list being prepared in a Word document, the How to Sort Text in Word: A Copy-Paste Workflow guide can help with the document-to-plain-text handoff before you use Text Sorter.

Finally, check the destination when the sorted file will be consumed by another system. Browser collation may differ from database ORDER BY behavior, operating-system filename order, spreadsheet locale settings, or another programming language. If the output becomes a contractual or reproducible machine artifact, confirm that the English browser collation and the selected case and numeric options match that destination system.

Used within those boundaries, an alphabetical order tool gives you a predictable workflow: preserve the line-oriented input, choose the order rules, apply only the cleanup you need, verify the exact preview and counts, and then save the UTF-8 text result.

Related reading: Add Line Numbers to Text on Android: Browser Steps.