# Ordering Decimals

Published on

Decimal sorting is a way of arranging numbers in order from smallest to largest or largest to smallest.

When you're sorting decimals, you compare the numbers one at a time, just like you would when comparing whole numbers. The difference is that decimals can have digits to the right of the decimal point, so you need to be careful when comparing them.

For example, let's say you have the following numbers: 0.5, 0.25, 0.75, 0.1

To sort these numbers from smallest to largest, you would start with the first two numbers and compare them. If the first number is smaller than the second number, you move on to the next two numbers. If the first number is larger than the second number, you swap them.

Here's how the sorting process would look for our example:

0.1 < 0.25, keep 0.1 and 0.25 in place 0.25 < 0.5, keep 0.25 and 0.5 in place 0.5 > 0.75, swap 0.5 and 0.75

The sorted numbers are now: 0.1, 0.25, 0.75, 0.5

It's important to pay attention to the decimal point and the digits to the right of it when sorting decimals. With a little practice, you'll be sorting decimals like a pro!