Do the multiplications in the fraction $\frac{2\times 5}{3\times 6}$.
$$sort(\frac{10}{18},\frac{4}{21})$$
Reduce the fraction $\frac{10}{18}$ to lowest terms by extracting and canceling out $2$.
$$sort(\frac{5}{9},\frac{4}{21})$$
Least common denominator of the numbers in the list $\frac{5}{9},\frac{4}{21}$ is $63$. Convert numbers in the list to fractions with denominator $63$.
$$\frac{35}{63},\frac{12}{63}$$
To sort the list, start from a single element $\frac{35}{63}$.
$$\frac{35}{63}$$
Insert $\frac{12}{63}$ to the appropriate location in the new list.
$$\frac{12}{63},\frac{35}{63}$$
Replace the obtained fractions with the initial values.