Last updated ·Published ·By the WiserWork team
Number Sorter
Sort a list of numbers ascending or descending
Paste a list of numbers, pick ascending or descending, and this sorter arranges them correctly by value — decimals and negatives included — not alphabetically.
What is the Number Sorter?
The Number Sorter parses a list separated by commas, spaces, or newlines, converts every valid entry to a real number, and sorts using a numeric comparison function rather than JavaScript's default string-based sort, which would otherwise put 10 before 2. Toggle between ascending and descending order and the list re-sorts immediately.
Key Features
- True numeric sort, so -8 comes before 0 and 9 comes before 45, not the reverse alphabetical trap
- Handles decimals and negative numbers correctly in either direction
- One click toggles between ascending and descending order
- Live count of how many valid numbers were recognized
- Copy button places the sorted list on your clipboard, comma-separated
Common Use Cases
- Ordering a list of scores, prices, or measurements from smallest to largest
- Ranking values from largest to smallest for a leaderboard or report
- Cleaning up a pasted column of numbers before pasting it back into a spreadsheet
- Double-checking that a spreadsheet or script sorted a numeric column correctly rather than as text
How to Use the Number Sorter
- Paste or type your numbers into the box, separated by commas, spaces, or line breaks.
- Choose Ascending or Descending using the radio buttons.
- Read the sorted list as tags, arranged in the order you picked.
- Check the Count badge to confirm every entry you expected was recognized.
- Press Copy to place the comma-separated sorted list on your clipboard.
Tips for Best Results
- This is a numeric sort, not alphabetical — 100 correctly comes after 99, unlike a plain string sort.
- Negative numbers sort correctly by true value; -100 is smaller than -1.
- Duplicate values are kept and appear multiple times in the sorted output.
- Non-numeric entries in your list are silently dropped rather than causing an error.
Why Use WiserWork’s Number Sorter?
The default sort in spreadsheets and code often sorts numbers as text unless you're careful, which quietly puts 10 before 2. This tool always compares by actual numeric value, so the order you get is the order you'd expect on a number line, every time.
Who Uses the Number Sorter?
Students and analysts use it to order data sets correctly before further work. Anyone building a leaderboard or ranking uses the descending mode to put the top value first. Spreadsheet users double-check a suspicious sort result here when numbers seem to be sorted as text instead of by value.
Frequently Asked Questions
Why does this matter if I could just sort in a spreadsheet?
Spreadsheets and many default sort functions compare values as text unless a column is explicitly formatted as numbers, which puts 10 before 2 because “1” sorts before “2” character by character. This tool always compares actual numeric value, avoiding that trap entirely.
Does it handle negative numbers and decimals correctly?
Yes. Both ascending and descending modes compare true numeric value, so -8 correctly sorts before 0 and 3.5 correctly sorts between 3 and 4.
What happens to duplicate or invalid entries?
Duplicate numbers are kept and appear as many times as you entered them. Entries that aren't valid numbers, like stray text, are simply skipped and won't appear in the sorted output or the count.
Paste a messy list, pick a direction, and get it back perfectly ordered by value — ready to copy straight into wherever it needs to go next.