Sort Lines Alphabetically

Puts lines in alphabetical order. Capital letters don't jump ahead, and numbers sort the way people expect: 2 before 10.

Result

The converted text appears here as you type.

For example
item 10
banana
item 2
Apple
banana
item 2

How to use

  1. Paste or type your text in the box.
  2. Check the result. Every change is highlighted, so you can see exactly what will be different.
  3. Press Copy Result, or Open in Editor to keep working with more tools, undo and saved drafts.

Example

Before
item 10
banana
item 2
Apple
After
Apple
banana
item 2
item 10

What it's for

  • Alphabetizing a list of names, keywords or references
  • Sorting items before comparing two lists

Questions

What does natural sorting mean?

Numbers inside lines are compared as numbers, so file 2 comes before file 10 instead of after it.

Where do empty lines go?

Empty lines sort to the top. Run Remove Empty Lines first if you don't want them.

Related tools