Sort Numerically

Sort lines by number, not alphabetically — so 2 comes before 10.

  • Free, no sign-up
  • Runs in your browser

Drop your file here, or

TXT, CSV, JSON, Markdown, HTML, XML, DOCX, PDF, RTF and more

Type, paste with Ctrl V, or drop a file

Options

Order
Duplicates

or press Ctrl EnterRuns in your browser

Result

Your sorted text will appear here.

Add your text, then press Sort lines.

How to use Sort Numerically

  1. Paste your text into the input box, or drop a file onto it.
  2. Choose your options.
  3. Press Sort lines.
  4. Copy the result or download it in the format you need.

Example

Before
10 apples
2 pears
-1 figs
3.5 kiwis
After
-1 figs
2 pears
3.5 kiwis
10 apples

Sorted by the first number on each line.

Good for

  • Ordering prices, scores or measurements
  • Sorting numbered steps that got shuffled
  • Ranking results by value

What happens to your text

Your text is processed in your browser and kept only in this tab’s memory. It is not uploaded, saved or used for analytics.

Related guides

  • How-to

    How to Sort a List Alphabetically

    Sort any list in alphabetical order online, in Word, Excel, Google Sheets or on the command line — including natural number order and Z–A.

Questions about Sort Numerically

More answers in the TextVix FAQ.

What happens to lines without a number?

They are placed after the numbered lines, in their original order.

Is my text uploaded anywhere?

No. This tool runs entirely in your browser. Your text and files are never sent to a server or stored.