Line Sorter
Sort a list of lines ascending or descending, with a numeric mode.
How to use Line Sorter
Free line sorter: order lines alphabetically or numerically, ascending or descending.
Open Line Sorter on toolpermarket and enter your values in the fields below.
In the Your list field, paste the lines to order, one per row. Tick Numeric to sort by the leading number instead of alphabetically.
Press Sort to compute the result. The output appears immediately below the form. You can change any input and run it again to compare results.
Read the result and use it as needed. If the number looks off, re-check your inputs and run it again — the math is deterministic, so the same entries always return the same answer.
Worked example. Paste product names, choose Descending, and the list is reordered from Z back to A instantly.
Tips for accurate results.
Ascending is A to Z; Descending is Z to A.
Numeric mode compares the values at the start of each line, handy for "12 apple" style rows.
Sorting is a quick way to spot duplicates sitting next to each other.
When to use Line Sorter. Ordering a tag or category list for a document. Ranking lines that begin with a score or count. Making a long list scannable before sharing.
When you actually reach for this
- You want a pasted list in alphabetical or numeric order.
- You are organizing entries before saving or exporting.
Where this tool stops being accurate
- Alphabetical sort is lexicographic, so "10" sorts before "2" unless you enable natural/numeric sort.
- It sorts by the whole line; to sort by a column you must isolate that column first.
- Blanks usually sort to the top or bottom depending on mode; pick what you want.
Frequently asked questions
Is my list sent anywhere?
No. Sorting happens entirely on your device; the lines are never transmitted or saved outside the page.
What does Numeric do differently?
Instead of comparing text, it reads the number at the start of each line and orders by value, so the value 10 sits after 2 rather than before it.
Can I sort a very long list?
Yes. Because the work is local and in memory, even thousands of lines sort in a fraction of a second.
Why is "10" above "2"?
Default sort compares characters left to right, and "1" comes before "2". Enable natural sort so numbers inside lines order by value, putting "2" before "10".
Can it sort by the second column?
Not directly — it sees each line as one string. Cut the column into its own list, sort, then rejoin if order by a field is what you need.