Shamrock Rovers 3 Bray Wanderers 1
Rovers moved ahead of Cork on goal difference with this vital win as Bray now looked doomed to relegation.
Stephen McGuinness sidefooted home the first from Stephen Grant's free kick on 24 minutes.
Stephen Fox volleyed Bray level a minute later.
But Rovers dominated the second half and James Keddy restored their lead on 48 minutes before substitute Tony Grant sealed the win 13 minutes from time.