Do the multiplications in the fraction $\frac{-5}{12\times 7}$.
$$sort(\frac{-5}{84},\frac{6}{7},\frac{-9}{14})$$
Fraction $\frac{-5}{84}$ can be rewritten as $-\frac{5}{84}$ by extracting the negative sign.
$$sort(-\frac{5}{84},\frac{6}{7},\frac{-9}{14})$$
Fraction $\frac{-9}{14}$ can be rewritten as $-\frac{9}{14}$ by extracting the negative sign.
$$sort(-\frac{5}{84},\frac{6}{7},-\frac{9}{14})$$
Least common denominator of the numbers in the list $-\frac{5}{84},\frac{6}{7},-\frac{9}{14}$ is $84$. Convert numbers in the list to fractions with denominator $84$.
$$-\frac{5}{84},\frac{72}{84},-\frac{54}{84}$$
To sort the list, start from a single element $-\frac{5}{84}$.
$$-\frac{5}{84}$$
Insert $\frac{72}{84}$ to the appropriate location in the new list.
$$-\frac{5}{84},\frac{72}{84}$$
Insert $-\frac{54}{84}$ to the appropriate location in the new list.
$$-\frac{54}{84},-\frac{5}{84},\frac{72}{84}$$
Replace the obtained fractions with the initial values.