Curtis Granderson drove in Alfonso Soriano with a sacrifice fly in the 11th inning and the New York Yankees avoided a three-game sweep by defeating the Tampa Bay Rays, 3-2, on Sunday in St. Petersburg, Fla.
Soriano started the winning rally with a one-out double off Jamey Wright (2-2). He stole third and came home on Granderson’s fly ball to center.
‘‘He ends up getting himself safe at third and now the situation changes,’’ Granderson said. ‘‘I just have to get a ball to the outfield.’’
Mariano Rivera, making his last regular-season appearance at Tropicana Field, received a standing ovation before getting the final three outs for his 38th save. Rivera has 37 saves at Tropicana Field, the most by any opponent, and has converted 64 of 66 save opportunities overall against Tampa Bay.
Boone Logan (4-2) got two outs for the win.
Pinch hitter Alex Rodriguez opened the 10th with a single to center off Wright and went to second on Brett Gardner’s sacrifice. Rodriguez then was doubled off second after Wright grabbed a line drive by Ichiro Suzuki that appeared headed toward center field.
New York got a homer and two RBIs from Robinson Cano.
Evan Longoria homered and drove in two runs for Tampa Bay.
The Rays, who had won eight of 10 and began the day in a virtual tie with the Red Sox for the top spot in the AL East, came away with some satisfaction at taking the big series, but wanted more.
‘‘When you win the first two you really want to go all the way,’’ manager Joe Maddon said. ‘‘But I’ll always take two out of three in this game against a really good other team.’’
Phillies 9, Diamondbacks 5 — Called upon to make an early return from the disabled list, Roy Halladay pitched six strong innings to pace Philadelphia at home. Cody Asche and Roger Bernadina each had two RBIs in the win.
Halladay expected to be facing minor league hitters Sunday before a late-night call alerted him to a change of plans following Philadelphia’s 18-inning, 12-7 loss to Arizona Saturday night. Halladay (3-4), working back from midseason right shoulder surgery, made his first start since May 5. He struck out two, walked two, and allowed four hits.
Orioles 10, Athletics 3 — J.J. Hardy, Nick Markakis, and Nate McLouth homered for host Baltimore, which won its weekend series with Oakland to move within two games of the Athletics for the second AL wild-card slot.
Manny Machado drove in two runs for the Orioles, who open a three-game set at Fenway Park on Tuesday. Josh Donaldson homered for the A’s, who have lost four of five.
Indians 3, Twins 1 — Drew Stubbs hit a tiebreaking, two-out homer in the eighth and Cleveland overcame four errors to beat visiting Minnesota and move within 1½ games of the second AL wild-card spot.
Tigers 11, Mets 3 — Miguel Cabrera drilled his 42d homer and Andy Dirks put Detroit ahead with a two-run shot in New York. Rick Porcello (10-7) pitched seven innings of four-hit ball.
Braves 5, Cardinals 2 — Mike Minor (13-5) gave up one run over seven innings as visiting Atlanta ended a three-game skid. St. Louis had won four straight.
Giants 4, Pirates 0 — Ryan Vogelsong threw eight sharp innings for his first victory in three months, and host San Francisco split the four-game series.
Brewers 3, Reds 1 — Marco Estrada (6-4) gave up one single over seven shutout innings in Cincinnati and Caleb Gindl slugged a two-run homer for Milwaukee.
White Sox 5, Rangers 2 — Jordan Danks went deep to help out his brother John, who outpitched Texas’s Matt Garza over six innings to lead Chicago at home.
Angels 7, Mariners 1 — Los Angeles completed a three-game sweep in Seattle as Jered Weaver (8-7) allowed just three hits over eight innings.
Blue Jays 2, Astros 1 — A run-scoring ground out by Ryan Goins put Toronto ahead in the top of the ninth, and Mark Buehrle’s strong start helped the Jays stop their losing streak at seven.
Padres 3, Cubs 2 — Nick Hundley hit a walkoff RBI single in the 15th to give San Diego its third win in four games.
Rockies 4, Marlins 3 — At Miami, Nolan Arenado picked up Colorado with a tiebreaking RBI double in the sixth. Jorge De La Rosa (14-6) won his fourth consecutive decision.
Royals 6, Nationals 4 — Salvador Perez homered early, then drove in the tiebreaking run in the eighth on a fielder’s choice as host Kansas City ended a seven-game skid.