$> Kaya
~/tools/line-sorterinteractive
/tools/line-sorter

Line Sorter

Use this line sorter to arrange text lines in ascending or descending order. It can trim whitespace, remove empty lines, and switch case sensitivity without leaving the page.

~/tools/line-sortersort
Direction
~/tools/line-sorter/examplesusage.txt

Example Usage

  • Sort a list of words or IDs alphabetically before pasting into a config file.
  • Clean line-based exports by trimming edges and removing empty rows.
  • Reverse the order of items quickly for debugging or manual comparison.
~/tools/line-sorter/guideREADME.md

Line Sorter Explained

A line sorter takes plain text input, splits it into separate lines, and reorders those lines based on a chosen sort rule. This is useful for cleaning keyword lists, checking IDs, organizing copied logs, or preparing sorted config values. Instead of sorting text manually, you can paste the full list and get the result instantly. This version also lets you trim line edges, remove empty entries, and choose whether letter case matters. Those options make it more practical than a basic alphabetical sort when real-world input is messy.

~/tools/line-sorter/faq3 items

FAQ

Can I sort in reverse order?

Yes. You can switch between ascending and descending output.

Will it remove empty lines automatically?

It can, but that behavior is optional and can be toggled on or off.

Does it change the content of each line?

Only if you enable whitespace trimming. Otherwise the original line text is preserved and only the order changes.

~/tools/line-sorter/related5 links
~/tools/line-sorter/linksinternal