How to use Sort Text Lines
Reorder a text list with one item per line. Choose natural order for numbers embedded in names, alphabetical for ordinary labels or length when you want short entries first.
- Paste each item on its own line.
- Select Sort by and enable Descending when needed.
- Copy the output and spot-check labels, accents and any numeric suffixes.
- Select Sort Text Lines and review the result.
Example input
Invoice-10 Invoice-2 Invoice-2 Invoice-3
Example use
Sort item10, item2 and item1 using Natural order to get item1, item2, item10. Use Length to group short identifiers before longer ones without interpreting their meaning.
Output and compatibility
Alphabetical and natural comparisons follow the browser’s locale behavior, and comparison can treat case and accents similarly. The tool keeps whole lines, including duplicates and blank ones. It does not sort multiple columns in a record.
Choose the order your readers expect
Files such as image1, image2 and image10 are usually easier to browse in natural order. For labels or names, ordinary alphabetical order can suit a visual review. If the eventual destination is a spreadsheet or database, compare how it treats accent marks and numeric suffixes. Sorting a copy preserves duplicate values and empty lines unless you remove them separately.
Troubleshooting
If numbers sort in a surprising order, switch between Natural order and Alphabetical. Remove blanks separately if they need to be excluded rather than moved.
If you want a randomized order, use Shuffle Lines.
Frequently asked questions
Does it sort numbers embedded in words?
Natural order compares digit sequences numerically.
Can I sort longest lines first?
Select Length and enable Descending.
Will it remove duplicates?
Use Remove Duplicate Lines for that separate step.
Can I sort by one CSV column?
Use Sort CSV so a row’s fields stay together.
How do I strip blank entries before sorting?
Use Remove Blank Lines on the original list.
Can it sort each line by only one field?
It compares whole lines. Use Sort CSV when fields need to remain grouped.