Fraction $\frac{-5}{-21}$ can be simplified to $\frac{5}{21}$ by removing the negative sign from both the numerator and the denominator.
$$sort(\frac{1}{2},\frac{5}{21})$$
Least common denominator of the numbers in the list $\frac{1}{2},\frac{5}{21}$ is $42$. Convert numbers in the list to fractions with denominator $42$.
$$\frac{21}{42},\frac{10}{42}$$
To sort the list, start from a single element $\frac{21}{42}$.
$$\frac{21}{42}$$
Insert $\frac{10}{42}$ to the appropriate location in the new list.
$$\frac{10}{42},\frac{21}{42}$$
Replace the obtained fractions with the initial values.