Skip to content
ToolHub

Sort Lines

Sort lines A–Z, Z–A, by length or numerically, or shuffle them.

Tt
TextTools Pro
20 tools · Live · Same Pattern
📝Result
—
Type something to see results
⚡ Output / Details
—
History0
📋
No calculations yet
Your history will appear here

About the Sort Lines

Sort Lines puts a list in order. Choose A → Z, Z → A, shortest first, longest first, numeric ascending, reverse order or a random shuffle. Alphabetical sorting can be case sensitive or not.

Sorting is also a quick way to bring duplicates next to each other so you can spot them.

How to use the Sort Lines

  1. Paste a list with one item per line.
  2. Choose a sort mode and whether alphabetical sorting is case sensitive.
  3. Copy the sorted list.

Example

Alphabetising names

“Zara, Ahmed, Maria, Bilal” on separate lines become “Ahmed, Bilal, Maria, Zara” in A → Z order.

Frequently asked questions

How are numbers sorted?

In A → Z mode text is compared character by character, so “10” comes before “9”. Use “Numeric asc” to sort by numeric value.

Is the shuffle truly random?

It is random enough for everyday use, such as shuffling a reading list, but not for draws where fairness must be provable.

Are empty lines kept?

Yes, empty lines are sorted like any other line. Remove them first if you do not need them.

Use ↑ ↓ to move, Enter to open.