Skip to content
AldeaCode Logo
Basic text100% local · 0 bytes sent

Sort Text Lines

Order any list of lines alphabetically or numerically, ascending or descending. Optional case-sensitive comparison and dedupe in one step.

Loading…

How it works

Lines are sorted with localeCompare for natural alphabetical ordering. Numeric mode uses parseFloat per line; non-numeric lines fall back to lexical order. Dedupe runs after sort and uses the same case rule.

How to use it

  1. Paste the list

    Drop in any list of lines: contacts, IDs, TODOs, log entries. Mixed alphanumeric content is fine.

  2. Pick mode and direction

    Alphabetical uses localeCompare for natural order. Numeric uses parseFloat. Choose ascending or descending.

  3. Toggle case and dedupe

    Case-sensitive separates A from a in the order. Dedupe removes duplicates after sorting, in one pass.

  4. Copy the sorted list

    Take the ordered output into your spreadsheet, your config file, or any process where stable line order matters.

Use cases

Alphabetise an exported contact list.

Sort numeric IDs from a database dump.

Tidy a TODO list by description.

Combine sort + dedupe in one click.

Your data never leaves your browser

Every utility runs entirely on your device. Nothing is uploaded, nothing is stored on a server. You can disconnect from the internet and they keep working.

Frequently asked questions

Related tools