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?

More ways to use this tool

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.

Embed widget

<iframe
  src="https://iotools.cloud/embed/sort-list/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="Sort List — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

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

Love the tools? Lose the ads.

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