Ready now
Text Sorter
Preparing controls…
About this tool
What Text Sorter does
Sort lines alphabetically or numerically, reverse their order, and choose how empty or duplicate lines are handled.
Reorder complete lines alphabetically, numerically, by character length or by reversing their existing order. Choose the method that matches what each line represents.
Sort numbers as numbers
Input or settings
Lines: 10 2 1 Sort order: numeric ascending
Expected result
1 2 10
How to use it
- Paste one item or number per line.
- Select a sort order and space/case options, then choose Sort lines.
- Check ties and numeric values before copying the reordered list.
Common uses
- Sort a numbered value list numerically instead of lexically.
- Reverse an existing sequence without changing its line contents.
Important limitations
- Numeric sorting requires a finite number on every retained line.
- Alphabetical order follows English locale comparison and can differ from byte order or another locale; equal items retain their relative order.
Frequently asked questions
Why does numeric order differ from alphabetic order?
Alphabetic comparison orders text, so 10 can precede 2. Numeric comparison uses the numbers represented by the lines.
Does reverse mean descending alphabetic order?
No. Reverse simply flips the current line sequence, regardless of its contents.