>Fafa Dev Tools

Text Sorter & Reverser

Sort lines alphabetically, by length, reverse order, or shuffle randomly. Free online text sorter with multiple sorting modes.

0 chars
Output will appear here...

What is Text Sorter & Reverser?

A text sorter rearranges lines of text according to various criteria: alphabetical order (A-Z or Z-A), line length (shortest to longest or vice versa), reverse order, or random shuffle. This is useful for organizing lists, sorting data entries, randomizing quiz questions, and preparing ordered datasets for import.

How to Use

  1. Paste your text (one item per line) in the input area
  2. Select a sort mode: A-Z, Z-A, Shortest first, Longest first, Reverse, or Shuffle
  3. Toggle 'Remove duplicates' to eliminate repeated lines before sorting
  4. The sorted result appears instantly in the output panel

Examples

Alphabetical sort

Inputcherry apple banana apple
Outputapple apple banana cherry

Sort by line length

Inputelephant cat dog butterfly
Outputcat dog elephant butterfly

Frequently Asked Questions

Is the sorting case-sensitive?

No. The sorting is case-insensitive by default, so 'apple' and 'Apple' are treated as equivalent. They appear together in the sorted output.

What does Shuffle mode do?

Shuffle mode randomly rearranges all lines. This is useful for randomizing lists, quiz questions, playlist orders, or assigning random priorities to tasks.

Can I sort numbers correctly?

Standard alphabetical sort treats numbers as text (10 comes before 2). For numeric sorting, ensure your lines contain only numbers. Line-length sorting can also help order numeric values by their string length.