invert order of ranking and next matches