EllyTools

Image Tools

Calculators

Text Tools

Color Tools

File Tools

Utility Tools

Sort Lines

Sort lines alphabetically, by length & more

Input (0 Lines)

Output

β—ˆ How to Use

1

Paste your text into the input area

2

Choose ascending or descending sort order

3

Copy the sorted text

❓ Frequently Asked Questions

Related Tools

β—‰ Who Is This For?

  • βœ“Developers sorting configuration lists or data
  • βœ“Writers organizing alphabetical lists
  • βœ“Anyone who needs to quickly sort a list of items

β˜… Why Choose EllyTools?

100% Free & Unlimited

No sign-up, no limits. Use as many times as you want.

Privacy First

All processing happens in your browser. Your files never leave your device.

No Installation Required

Works directly in your browser on any device β€” desktop, tablet, or phone.

Fast & Reliable

Instant results powered by modern browser technology.

Sort Lines: Alphabetical, Numerical, and Reverse Order

Sorting lists alphabetically or numerically is one of the most common text-cleanup tasks. This tool sorts pasted lines and lets you choose direction (ascending/descending), case-handling, and natural number ordering.

Default sorting is character-by-character left-to-right. That's correct for most use cases but produces strange results with numbers β€” '10' sorts before '2' because '1' < '2' character-wise. Natural sort fixes this by treating embedded numbers as numbers, putting '2' before '10' as expected.

Sort options

  • β€’Alphabetical (case-sensitive) β€” uppercase letters sort before lowercase
  • β€’Alphabetical (case-insensitive) β€” most common everyday sort
  • β€’Reverse β€” Z to A or large to small
  • β€’Natural sort β€” '2' before '10', for filenames with numbers
  • β€’Sort by length β€” shortest first or longest first

Extended FAQ

How does it handle Korean characters?

Korean sorts by Unicode order, which matches the modern Hangul (ν•œκΈ€) alphabetical order. So κ°€ < λ‚˜ < λ‹€, etc., as expected.

Does it remove duplicates?

Sorting itself doesn't remove duplicates. Use the dedup tool first if you want unique sorted output.

Are my pasted lines stored?

No β€” runs entirely in your browser.