Sorting fractions

Given two integers we can determine easily which is bigger. This relation of order can be defined also between fractions.

Let's consider the fractions ab and cd with b and d positives. The fraction ab is bigger than the fraction cd if ad>cb.

This relation is natural because ab=adbd and cd=cbdb, and, as they have the same denominator, we can just focus on the numerator.

Example

Let's see some example where we are going to sort the numbers 13,25 and 14.

We write them with a common denominator, 13=154354=2060 25=234534=2460 14=135435=1560

We have 15<20<24 and therefore 14<13<25