About the Sort Lines tool
Sort Lines puts a list into order instantly. Alphabetical sorting uses natural ordering (so "Chapter 2" precedes "Chapter 10"), numeric sorting reads the number in each line, and length sorting is useful for finding the longest or shortest entries. You can also reverse a list or shuffle it randomly, which is handy for drawing names or randomising quiz questions.
Common uses include ordering bibliography entries, tidying import statements or CSS properties, ranking numbers copied from a report, and organising to-do lists or inventories exported from other apps.
How to use the Sort Lines
- Paste the lines you want to sort into the input box.
- Pick a sort order: alphabetical (A-Z or Z-A), numeric, by line length, reverse the current order, or shuffle randomly.
- Tick "Ignore case" or "Remove empty lines" if needed, then click Sort and copy the result.