Writing toolsSort lines

Sort lines

Put one item on each line to sort a list of names or filenames. Numbers sort in order, so Item 2 comes before Item 10.

Add or drop TXT, Markdown, CSV, TSV, LOG, DOCX, ODT, or PDF files.

What Sort Lines is for

An alphabetical list makes a name easier to find. For numbered filenames, sorting by the number also keeps the files in sequence.

How to use Sort Lines

Paste the entries without their column heading. The preview starts in ascending order. Select Descending order to reverse the sort, then choose Apply changes.

Item 10
Apple
Item 2
apple

In English, the ascending result is Apple, apple, Item 2, Item 10, each on its own line. The sorter reads 10 as a number, so the same rule works for filenames such as photo2.jpg and photo10.jpg. Apple and apple tie because capitalization is ignored. Both survive, and the one you pasted first stays first within that pair.

What changes in descending order?

Select Descending order and the numbered items come first, with Item 10 above Item 2. Apple still precedes apple within their tie. If you need to put every line in the exact opposite of its current position, including tied entries, use Reverse Line Order.