The text changes in this tab
Sort lines ascending
Lines are ordered with English alphabetical comparison.
The comparison is case-sensitive and does not follow a Chinese dictionary.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Sort lines A to Z
The sample is fixed. It uses the same rule as the form.
- Input
- b a
- Result
- a b
How to use it
- 1Edit the text.
- 2Read the result beside it.
- 3Copy what you need.
Good to know
- Duplicate lines are kept.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Duplicate lines are kept.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Sort lines descending
Lines are ordered from Z toward A with the same English comparison as the ascending page.
- Drop duplicate lines
The first copy of a line is kept. Later exact copies are removed.
- Sort, trim, and count lines
Lists in a text box are awkward to clean by hand. This page trims, filters, sorts, or reverses the lines, and always shows the counts.