Sort Text Lines — A–Z, In Browser | How to use and interpret results
Sort text lines with direction, case-insensitive comparison and trimming options. Character-order comparison differs from a linguistic dictionary or a numeric sort.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Numbers stay on your device. Nothing is sent to a server.
How to use this tool
Paste one item per line and choose ascending or descending. Numbers are compared as text, so unpadded 2 and 10 can appear in a different order from their numeric values.
Results and examples
An ascending text sort can place 10 before 2. Lines with equal comparison keys retain their original order, making the case-insensitive setting worth checking.
Worked example
An ascending text sort can place 10 before 2. Lines with equal comparison keys retain their original order, making the case-insensitive setting worth checking.
Limitations
- Locale-specific dictionary collation is not supplied.
- Duplicate removal and numeric sorting are not automatic.
Fields
| Field | Guidance and constraints |
|---|---|
| Lines | Check the unit and format displayed beside this field. |
| Order | A → Z / Z → A |
| Ignore case | Check the unit and format displayed beside this field. |
| Trim each line | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Why can 10 come before 2?
An ascending text sort can place 10 before 2. Lines with equal comparison keys retain their original order, making the case-insensitive setting worth checking.
Does sorting also remove duplicates?
Locale-specific dictionary collation is not supplied. Duplicate removal and numeric sorting are not automatic.
Related tools
You do not need to start over. Continue with the tool that fits your next step.