sort array fractions