Skip to content
UniKit

Numeric list sort

Strictly validate and sort a numeric list ascending or descending.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Number list

Result

Processed text result.

Enter text to see the result

Valid: 0

What this tool does

  • Sort a one-number-per-line list by numeric value instead of dictionary order, so 10 comes after 2.
  • Ascending by default, switchable to descending; negative numbers and decimals such as -3.5 or .5 are supported.
  • Any line that is not a valid number fails the whole input, and equal values keep their original order.

Example

Input

10
2
30

Output

2
10
30

One number per line; the example uses the default ascending (numeric) order and a non-numeric line would fail.

Frequently asked questions

Does it use the network?

No, all calculations run locally in the browser.

Does it access real files?

No, it only processes text entered in the form.

What happens for invalid input?

The tool validates it strictly and reports an error.

Keywords:Numeric list sortsort-num-listtextlist

Related tools