$devtoolkit.sh/tools/sort-lines

Sort Lines

Sort text lines alphabetically, numerically, or in reverse order.

Order:Case:Numeric:
$unsorted lines
0 chars1 lines
$sorted lines[READY]
0 chars1 lines

Related Tools

FAQ

What is the difference between alphabetical and numeric sort?
Alphabetical sort compares lines character by character as strings, so "10" sorts before "2" (because "1" < "2"). Numeric sort extracts the leading number from each line and compares numerically, so "2" sorts before "10" as expected.
Does case-sensitive sort matter?
Yes. In case-sensitive mode, uppercase letters sort before lowercase (A–Z before a–z), so "Banana" appears before "apple". In case-insensitive mode, both are treated equally and typically produce a more natural alphabetical order.
Are blank lines included in the sort?
Yes, blank lines are included in the sort output. They typically sort to the top in ascending order. If you want to remove blank lines before sorting, use the Remove Empty Lines tool first.

Sort Lines arranges the lines of your text in a specified order. Choose between ascending or descending sort, toggle case-sensitive or case-insensitive comparison, and enable numeric sort to order lines containing numbers correctly (so "2" sorts before "10"). Useful for sorting word lists, organizing data, preparing sorted input for scripts, and cleaning up unordered content.

/tools/sort-linesv1.0.0