Skip to content
Home → All Tools → Text Tools → Text Sorter
TEXT TOOLS

Text Sorter

Sort lines alphabetically in ascending or descending order.

Use the tool

Enter your values below. Results are calculated in your browser.

About this Text Sorter

Text Sorter organizes one-item-per-line lists without requiring a spreadsheet. Choose ascending or descending order and copy the sorted result.

Formula or method

Each non-empty line is treated as one item and sorted using locale-aware text comparison.

Example

Lines “Pear, Apple, Banana” become Apple, Banana, Pear in ascending order.

Common uses

  • Alphabetize names or keywords.
  • Reorder one-item-per-line lists.
  • Prepare sorted lists for reports or content.

How to use this tool

  1. Enter the values or text requested by the calculator.
  2. Choose units or options when the tool provides them.
  3. Select the calculation button and review the result.
  4. Use the formula, example and notes on this page to check whether the result fits your situation.

Important note

Sorting is text-based, so values such as 10 and 2 are ordered as text unless you prepare them with consistent padding.

Frequently asked questions

Are blank lines included?

Blank lines are ignored in the sorted output.

Is sorting case sensitive?

The tool uses locale-aware comparison with case-insensitive behavior where supported by the browser.