Added sort_fractions