fixed sorting in PairingsController