Science & Engineering

Least to Greatest Calculator (Sort & Order Numbers)

Paste a list of numbers and it sorts them low to high or high to low. It reads decimals, fractions, negatives, and scientific notation, and also reports the min, max, median, and mean.

Reviewed and updated

How to use
  1. Paste or type your list of numbers.
  2. Choose ascending or descending order.
Sample sets
Sorted list

Count
Min
Max
Median
Mean
Range
Sum
For study and estimation. Verify against authoritative data before relying on a result.
Was this helpful?

Least to greatest means ascending, on the number line

Ordering from least to greatest lines the values up left to right on the number line: smallest first, largest last. It is the first step for finding a median, quartiles or the min and max of a set.

−5 < −1 < 0 < 2 < 5

Three things that get sorted wrong

  • Sorting as text, not numbers. Character order puts 10 before 2 (because "1" comes before "2"). Numeric order is 2, then 10. Always compare by value.
  • Flipping negatives. −20 is smaller than −10, not larger. Sorting by size while ignoring the sign is the classic mistake.
  • Leaving fractions as-is. Turn 3/4 into 0.75 before you compare, or put everything over a common denominator.

Mixed values, in order

TypeUnsortedLeast to greatest
Integers7, −3, 0, 15, −10−10, −3, 0, 7, 15
Decimals0.75, 0.25, 1.5, 0.50.25, 0.5, 0.75, 1.5
Fractions3/4, 1/4, 1/21/4, 1/2, 3/4
Mixed2, −1.5, 1/2, 0−1.5, 0, 1/2, 2

Once the list is sorted, the middle value is the median; the smallest and largest are simply the ends.

Common questions

What does least to greatest mean?

It means ascending order: the smallest number first, the largest last. For example 5, 2, 9, 1, 3 becomes 1, 2, 3, 5, 9.

How do negative numbers sort?

Every negative number is smaller than zero, and the more negative it is the smaller it ranks. So -20 comes before -10, which comes before 0 and then the positives.

How do I order fractions from least to greatest?

Convert each fraction to a decimal by dividing top by bottom, then compare. 1/4 is 0.25, 1/2 is 0.5, 3/4 is 0.75, so the order is 1/4, 1/2, 3/4.

From the blog

Guides & how-tos

All articles →