How to use the Sort Text Lines
- Paste your lines
- Choose how to sort
- Copy the sorted list
Sort a list in one click
Paste a list with one item per line and choose how to sort it: A โ Z or Z โ A, numbers ascending or descending, shortest first or longest first, reverse order, or shuffle randomly. Options: Natural sort (so โApple 2โ comes before โApple 10โ), ignore case, and remove empty lines.
Names, words and references
- Names by surname โ write them as โLast, Firstโ before sorting.
- Words on a single line โ put each word on its own line first.
- Reference lists โ APA and MLA lists are ordered by the first author's surname, so paste one reference per line and sort A โ Z.
In other programs
- Word โ Home โ Sort (AโZ).
- Excel โ Data โ Sort A to Z.
- Google Docs has no built-in sort; paste the list here, sort it, and paste it back.
- Notepad++ โ Edit โ Line Operations โ Sort Lines Lexicographically Ascending.
- VS Code โ Command Palette โ โSort Lines Ascendingโ.
- Sublime Text โ Edit โ Sort Lines (F9).
- Linux โ
sort file.txt; add-Vfor natural order.
Your list stays in your browser.