Compare and order fractions