How this instrument works
Ascending order means arranging a list so each value is no smaller than the one before it: x₁ ≤ x₂ ≤ ... ≤ xₙ. It is the most basic rearrangement in statistics, because almost every other summary — the median, the quartiles, the minimum and maximum, the range — is defined in terms of a sorted list first. Before you can find the 'middle' value or the '25th percentile' of a data set, you have to know what order the values fall in.
Sorting itself changes nothing about the data — it is the same numbers, just arranged so their relative size is visible at a glance. That makes it a useful first step even when it isn't the final answer you're after: a sorted list makes duplicates, gaps, and outliers easy to spot by eye, in a way an unsorted list of the same numbers doesn't.
Statisticians call a sorted value's position its rank, and the whole sorted sequence the order statistics of the data set, written x₍₁₎, x₍₂₎, ..., x₍ₙ₎ with parentheses around the subscript to signal 'the i-th smallest,' not 'the i-th value as originally entered.' Negative numbers sort before zero, which sorts before positive numbers, and ties simply sit next to each other in the output — sorting never removes or merges duplicate values.
- Enter your numbers into Numbers to sort — separate them with commas, spaces or new lines, in whatever order you have them.
- Read Sorted, smallest to largest directly beneath — every value you entered, rearranged with the smallest first.
- Negative numbers, decimals and repeated values are all handled correctly — negatives come first, then zero, then positives, with duplicates kept side by side.
- Need the reverse order instead — largest first? This site's greatest-to-least instrument performs the same sort in the opposite direction.
- Enter at least one number; with nothing entered there is no list to arrange.
Worked example — sorting 5, 2, 8, 1
Enter 5, 2, 8, 1 into Numbers to sort. Comparing all four values pairwise, the smallest is 1, followed by 2, then 5, then 8 — there's only one way to arrange them so each is no smaller than the one before it. Sorted, smallest to largest reads 1, 2, 5, 8.
Notice the original entry order — 5 first, then 2, then 8, then 1 — has no bearing on the result. Ascending order only cares about magnitude, so however jumbled the input, the output always comes out in the same smallest-to-largest sequence.
Questions
What's the difference between ascending order and greatest-to-least?
They're mirror images of the same rearrangement. Ascending order puts the smallest value first and the largest last; greatest-to-least (descending order) reverses that, putting the largest first. Sorting 5, 2, 8, 1 ascending gives 1, 2, 5, 8, while sorting it descending gives 8, 5, 2, 1 — same four numbers, opposite reading direction. Use whichever direction matches how you need to read the result.
How does sorting handle negative numbers?
Negative numbers always sort before zero, which sorts before positive numbers, exactly following normal number-line order. For example, -8, -3, 0, 7, 10 sorted ascending stays in that exact order, because -8 is the smallest value on the number line and 10 is the largest — sorting never treats the minus sign as anything other than 'smaller than.'
What happens if my list has duplicate values?
Every occurrence is kept — sorting rearranges values, it never removes or merges them. A list like 4, 4, 2, 4 sorted ascending becomes 2, 4, 4, 4: all three 4s remain, simply grouped together once the list is in order.
Can I sort decimals and whole numbers together?
Yes — the instrument compares values by their actual numeric size, not by how many digits they have, so 2, 1.5, 10, 1.05 sorts correctly to 1.05, 1.5, 2, 10. Mixing decimals and integers in the same list causes no issues.
Why would I sort numbers instead of just reading them as entered?
A sorted list makes the smallest and largest values, gaps, and repeated entries far easier to spot by eye than an unsorted one, and it's the required first step for finding a median, quartiles, or percentile by hand. Even when a sorted list isn't the final answer you need, it's often the fastest way to sanity-check a data set for typos or outliers.
How many numbers can I enter?
At least one — with an empty list there's nothing to arrange, so the instrument asks for at least one value. Beyond that, there's no practical upper limit; paste as long a list as you have and it sorts in a single pass.