About this list alphabetizer
Alphabetizing a list makes items easier to scan, compare and maintain. This tool treats each line as a separate item, so a phrase containing several words stays together. Paste names, labels, filenames or other entries with one item per line. The result updates whenever you edit the text or change the sorting options.
Ascending order runs from A to Z; descending order reverses that comparison. Natural number sorting compares embedded digits numerically, placing item 2 before item 10. With that option disabled, numbers are compared as text instead. Case-insensitive sorting treats uppercase and lowercase versions of a letter as equivalent for ordering. The comparison uses the browser's English locale collation rules, including its handling of accents and punctuation.
The alphabetizer preserves duplicate entries and the text of each line. Blank lines also remain, and may move to the start or end when sorted. Line endings are normalized to a single newline character in the output. For a multi-column table, use a spreadsheet instead: this tool sorts complete lines and cannot keep separately pasted columns aligned.
Which controls should I check first?
The List Alphabetizer form labels its controls as Your text; Order; Natural number sorting; Ignore letter case; Result. Its selectable values include A to Z; Z to A. Use those labels to keep the source and settings separate. A sample argument that selects a mode is not additional source text. Choose the setting matching your intended operation before copying a result, and change it explicitly when comparing another mode. The labels describe what this form accepts; the worked examples below demonstrate only the stated supplied values.
How should I interpret this specific operation?
Natural sorting compares embedded numbers numerically, which places item 2 before item 10. Ordinary text sorting compares their character sequence instead. The English locale collation also affects accents and case. Choose the comparison that matches the receiving list before sorting a large dataset, and verify representative numeric and accented entries because a different application's collation can produce a different valid order.
Worked helper values
These values come from the reproducible calculation examples supplied with this tool. Each row identifies the complete supplied arguments and the returned value. A visible ↵ denotes a line break and ⇥ denotes a tab in text examples. Settings appear alongside source data so that a different mode is not mistaken for an identical input. These are helper calculations, not observations of a live device, fetched target, image decoder, browser preview or downloaded file. Use the stated method above to relate the returned fields to the actual operation.
| Supplied values | Calculated return value |
|---|---|
| item 10 ↵ item 2 ↵ item 1; false; true; true | item 1 ↵ item 2 ↵ item 10 |
What counts as one text element?
Text can be handled as visible graphemes, Unicode code points, bytes, words or complete lines. These units differ. A joined family emoji may look like one character while containing several code points; an accented character may use more than one encoded byte. Use the unit stated in this tool's method before comparing results with an editor or database. Line tools should receive one entry per line, while word tools use their documented whitespace boundaries. A transformation that preserves every visible word can still change separators, and a transformation that preserves every byte does not necessarily operate on complete visible characters.
How should I prepare a representative sample?
Start with a short excerpt containing the features that matter to your job: an accented letter, a number, punctuation, a repeated item, or a blank line. Choose the relevant options and inspect the result before processing the full text. Keep a separate source copy so that you can compare exact spaces and case. If duplicate labels refer to different records, attach identifiers before applying a list operation that could remove them. Text processing cannot infer whether two identical-looking names belong to the same record. A small sample makes delimiter mistakes easier to see than a long unstructured paste.
Which differences should I inspect after conversion?
Compare the first and last entries, any blank entries, and text around punctuation. Check whether the intended operation preserves line endings, joins tokens with spaces, or substitutes a custom delimiter. These are distinct behaviors: reversing words does not preserve the original layout, while reversing lines keeps each line's internal content together. A normalized comparison can intentionally ignore case or accents, whereas an exact comparison retains them. Read the stated method instead of assuming that all text tools share one normalization policy. If another application reports a different count, compare the boundary rules before treating either number as incorrect.
Why can copied text behave differently elsewhere?
A destination can apply its own normalization, line-ending rules, font substitution or length limits. Fancy Unicode letters are different characters from ordinary ASCII letters even when they look like a font change. Some destinations cannot display those glyphs, and searching plain text may not match them. Likewise a byte count changes with encoding, while a visual count may remain unchanged. Test a small converted sample in the receiving application before replacing a large document. Retain ordinary text when accessibility, searching or exact identifiers matter. A local text result is data rather than proof that the destination interprets it the same way.
What is natural number sorting?
Embedded digit sequences are compared numerically, so item 2 comes before item 10.
Will it remove repeated items?
No. It preserves duplicates. Use Duplicate Lines Remover to remove them.
Which language determines sorting?
The tool uses English locale collation provided by your browser.