Skip to main content

Sort List

Sort the lines of a list alphabetically or numerically, with optional case-sensitivity, leading-number detection, and reverse order. Runs entirely in your browser.

Input

When enabled, sorting is case-sensitive (e.g. 'a' comes before 'A').

When enabled, leading numbers are detected and sorted numerically instead of alphabetically.

Output

Sorted List
Was this helpful?

Guides

Sort the lines of a list into alphabetical or numerical order. Paste anything line-separated — names, dates, file paths, survey answers — and get it back sorted, with control over case-sensitivity, numeric detection, and direction.

How to use it

  1. Paste your list, one item per line, into the input box.
  2. Toggle the settings below as needed.
  3. Copy or download the sorted result.

Settings

  • Reverse Order — sort Z→A (or largest→smallest with number detection) instead of the default A→Z.
  • Case-sensitive — when off (default), sorting ignores case, so apple and Apple sort next to each other. When on, uppercase letters sort before lowercase.
  • Detect numbers — when a line starts with digits, compare that leading number numerically instead of as text, so 2 sorts before 10 (a plain alphabetical sort would put 10 first, since "1" < "2").

Privacy

Everything runs entirely in your browser. Your list is never uploaded to a server.

sortlistalphabetizeordertext

Use it from code

From 3 credits per call

REST API

curl -X POST https://api.iotools.cloud/v1/tool/sort-list \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "originalList": "banana\nApple\ncherry",
    "reverseOrder": "",
    "caseSensitive": "",
    "detectNumbers": ""
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `sort-list` tool (Sort List) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.