Sort complete lines ascending or descending, or simply reverse their current sequence. Follow the exact input and settings below to reproduce this example. Open Sort Text Lines.
Prepare the source text
Open Sort Text Lines and choose Write or paste text, or upload a supported UTF-8 text file. The upload opens the editor; it does not run the tool. This example uses the exact source shown in the comparison.
Maximum input and result: 1 MB of UTF-8 text, with a 1,048,576-character input ceiling. Expanding transformations must also fit the result limit.
Use the exact example input
banana apple cherry
This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.
Choose the settings
For the recorded example, use these settings: Line order: Ascending.
Ascending and descending use the browser string comparison order and are case-sensitive. Reverse changes only the current sequence; it does not alphabetize. Blank lines and duplicates are preserved, so clean them separately if your list should contain unique nonempty entries.
The example in this guide
Verified in the i2TEXT browser workflow on November 11, 2026.
- Input
- example.txt
- Output
- sort-text-lines.txt
- Saved result
- 19 bytes
Apply and inspect the result
Select Sort Text Lines when the input and settings are ready. In the saved example, the result begins: "apple".
This is not a natural-number or language-specific dictionary sort. For example, a line starting with 10 can sort before one starting with 2.
Save the version you reviewed
Review the current result, then use Download text to save a TXT file. The actual download in this example is named sort-text-lines.txt. Copy and download use the current result, so make any final wording changes before saving. Continue to can carry the result into a compatible next tool, where you review it before running another operation.
example.txtsort-text-lines.txt
Common questions
Which settings produced this example?
Line order: Ascending.
What should I check before using the result?
This is not a natural-number or language-specific dictionary sort. For example, a line starting with 10 can sort before one starting with 2.
Where is this text processed?
This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.
Try Sort Text Lines with your own text.
Use your own source and review the result before sharing.