Sort Text Lines

Organize line-based content quickly using alphabetical or length-based ordering.

Input

Common examples

Operations

Results

Enter text to see live output.

FAQ

Why use case-insensitive sorting?

It avoids uppercase-first bias and produces a more natural alphabetical order.

How are ties handled in length sorting?

Lines with the same length are secondarily sorted alphabetically.

Does sorting remove lines?

No. Sorting only reorders lines and keeps all content.