Compare fractions with the same denominator