idiom
turn the tables
inverser une situation et prendre l'avantage
Meaning
to reverse a situation and gain the upper hand
Example
They were losing, but managed to **turn the tables** in the final round.
Ils perdaient, mais ont réussi à **inverser la situation** au dernier tour.