Text & Writing Tools

Text Sorter

Sort text lines alphabetically or numerically in ascending or descending order.

Your input is processed in this browser and is not sent to our server.

How to Use Text Sorter

  1. Enter one item per line.
  2. Choose alphabetical or numeric order, including ascending or descending where available.
  3. Select Run tool to sort the lines.

Example

Input

pear\napple\nbanana

Result

apple\nbanana\npear

Common Errors & Troubleshooting

  • Alphabetical sorting ignores case for comparison but retains the original line text.
  • Numeric mode converts each full line to a number; nonnumeric lines may not sort as expected.

Frequently Asked Questions

Does sorting change the contents of a line?

No. It changes only the line order.

Are duplicate lines removed?

No. Sorting keeps all input lines, including duplicates.