🧰Locly

Sort Lines of Text

Sort text lines ascending or descending with optional filters

About This Tool

Sort Lines sorts each line of your text in ascending or descending order. You can remove blank lines and ignore case before comparing. Sorting is processed locally in your browser.

How to Use

  1. Paste your text
  2. Choose ascending or descending
  3. Optionally remove blanks or ignore case
  4. Click Sort
  5. Copy the result

Common Use Cases

  • Alphabetize lists
  • Sort keywords
  • Order log tags
  • Prepare CSV key columns
  • Clean pasted notes

FAQ

Q1: Is sorting case-sensitive?

By default yes. Enable Ignore case to treat A and a the same.

Q2: Are blank lines kept?

Yes unless Remove blank lines is enabled.

Q3: Is text uploaded?

No. Sorting is processed locally in your browser.

Q4: Does it sort numbers naturally?

Lines are compared as text, so 10 may sort before 2.

Q5: Can I dedupe as well?

Use the Remove Duplicate Lines tool after sorting.

Related Tools