Compare and order fractions using the liner model