The Blue Jays rallied from three runs down in the late innings Sunday to avoid a first-ever four-game sweep at the hands of the Los Angeles Angels.

Down 5-2 after seven innings the Jays took advantage of some sloppy LA defence to score a pair in the eighth and then two more in the ninth off Angels closer Ernesto Frieri to win it 6-5.

Edwin Encarnacion’s second single of the game drove home Rajai Davis from third base with two out to snap a 5-5 tie and give Toronto its third victory against four losses on this 10-game west coast swing.

“It’s just big that we won the game” said manager John Gibbons. “We needed that desperately. We were down for most of the game and got some big hits late. It was a much-needed win.”

Earlier in the ninth inning Jose Bautista’s single to left had scored catcher J.P. Arencibia with the game-tying run. Casey Janssen came on in the bottom of the ninth and erased the Angels in order for his 19th save.

Davis ended the day with three hits three stolen bases three runs scored - including the game-winner in the ninth - and one RBI.

“In a lot of ways Rajai’s in his own class when he gets on the bases” said Gibbons. “You can’t stop the guy and he puts pressure on everybody.”

Mark Buehrle began the game with a 20-inning scoreless streak that ended quickly.