Number Sorter
Paste numbers in any common format and get a clean sorted list.
INPUT
CHARS: 0WORDS: 0LINES: 0
OUTPUT
CHARS: 0WORDS: 0LINES: 0
How the Number Sorter works
Numbers can be separated by commas, semicolons, spaces or new lines. Each token is read as a real number, so 10 sorts after 9 rather than after 1, and negative values and decimals are handled correctly. Tokens that are not numbers are ignored and counted in the status line.
Choose ascending or descending order, remove duplicates if needed and pick the separator for the result. The info line also reports the count, sum, minimum and maximum, which makes the tool handy for quick checks.
Number Sorter examples
Sample input with the default options
Input
42, 7, 19 3.5 -8 100
Result
-8 3.5 7 19 42 100
When it is useful
- •Putting survey scores, prices or measurements in order.
- •Finding the smallest and largest values in a pasted column.
- •Turning a messy comma separated list into one number per line.
- •Removing duplicates from a list of IDs or years.
Frequently Asked Questions
Why is sorting numbers as text different?
Text sorting compares character by character, so 100 comes before 20. This tool compares the actual values, so 20 comes before 100.
What happens to values that are not numbers?
They are skipped, and the info line tells you how many were ignored so that nothing disappears silently.
Can it sort words instead?
Use the Sort Words Alphabetically tool for text. It also has a natural sort mode that handles numbers inside words, such as item2 and item10.
Related tools
- Sort Words AlphabeticallyChoose lines, words or comma separated items and sort them in the order you need.
- List ConverterReshape a list for SQL, code or a spreadsheet.
- Random Number GeneratorSet a range and a count and get unbiased random numbers.
- Number to Words ConverterTurn 1,234.56 into words such as one thousand two hundred thirty-four dollars and fifty-six cents, or spell out any other number.
- Duplicate Line RemoverPaste a list and keep each line once, in the order it first appeared.