Sort Text

Last updated: October 17, 2026  •  Published by: NOFYI Editorial Team  •  Category: Text Tools

Workspace

What Is Sort Text?

Sort Text reorders the lines you paste into the workspace. The Sort Order dropdown offers A-Z, Z-A, Numeric Ascending, Numeric Descending, Random, and By Length. Use it to alphabetise a list, order numbers, shuffle lines, or arrange lines by length without retyping anything.

How to Use Sort Text

  1. Open the Sort Text page in your browser.
  2. Paste or type your text into the workspace textarea, one item per line.
  3. Choose a sort order from the Sort Order dropdown. The default is A-Z (Ascending).
  4. Click Process.
  5. Read the result in the result panel. Use Copy to copy it, or Download to save it.
  6. Click Clear to empty the workspace and sort something else.

Worked Example

I pasted six lines into the workspace, with the sort order left on A-Z (Ascending):

banana
Apple
cherry
10
2
banana

The tool returned:

10 2 Apple banana banana cherry

Three things are visible in that result. First, 10 comes before 2, so in A-Z mode the numbers are compared as text (1 comes before 2), not by numeric value. Second, Apple comes before banana, so capital letters sort before lowercase letters. Third, banana appears twice, so duplicates are kept, not removed.

Limitations

  • A-Z sorting is text-based and case-sensitive. Numbers are ordered as characters (10 before 2), and capitals sort before lowercase (Apple before banana). If you need numeric order, use one of the Numeric modes instead.
  • Duplicates are kept. Sorting does not remove repeated lines; use Remove Duplicate Lines first if you need a unique list.
  • Output is space-joined, not line-separated. The sorted lines appear separated by spaces on one line, so the result does not paste back as a clean one-item-per-line list without further editing.
  • No extra controls. The workspace shows only the Sort Order dropdown. There is no option to ignore case, trim blank lines, or remove duplicates as part of sorting.

Frequently Asked Questions

Why does 10 sort before 2 in A-Z mode?

A-Z mode compares lines as text, character by character. The first character of 10 is 1, which comes before 2, so 10 sorts first. Use Numeric Ascending if you want 2 before 10.

Does sorting remove duplicate lines?

No. In the example, banana appears twice in the input and twice in the output. Sorting only reorders lines.

Why is the result on one line instead of one item per line?

That is how the workspace displays the result: the sorted lines are joined with spaces. Copy it into an editor and replace the spaces with line breaks if you need a line-per-item list.

Do I need an account to use it?

No. The tool runs in the browser tab and does not ask for an account or sign-up.