BALTIMORE: Manny Machado blooped an RBI single that eluded left fielder Matt Joyce’s desperate dive with two outs in the 14th inning, and the Baltimore Orioles beat the Tampa Bay Rays 3-2 Thursday to complete a three-game sweep and remain atop the American League East.

With their 81st victory — and 13th in a row in extra innings — the Orioles are assured no worse than a .500 record for the first time since 1997. Baltimore (81-62) remained in a first-place tie with the New York Yankees.

In a 5-hour, 14-minute game, Chris Archer (0-3) walked Adam Jones with two outs in the 14th, Endy Chavez singled and Machado followed with a soft liner toward the line that Joyce trapped.

Randy Wolf (2-0) struck out Joyce with two on in the top of the 14th. Baltimore has won 14 of 19 overall and is 26-11 since Aug. 3.

YANKEES 2, RAYS 0: In Boston, Derek Jeter shook off an injury to tie Willie Mays for 10th place on the career hits list, backing Phil Hughes and helping the Yankees to maintain a share of the AL East lead. New York won consecutive games for the first time in a month.

Hughes (15-12) gave up five hits in 7 1-3 innings, struck out seven and walked one. Rafael Soriano pitched the ninth for his 38th save.

Jeter started at designated hitter after leaving Wednesday night’s 5-4 win when he pulled up lame lunging for first base trying to avoid a double-play grounder in the eighth.

Andruw Jones hit a fourth-inning sacrifice fly off Felix Doubront (10-9).

ANGELS 6, ATHLETICS 0: In Anaheim, California, Jered Weaver (17-4) allowed two hits in seven innings and struck out nine in his first start since skipping a turn in the rotation because of biceps tendinitis.

Torii Hunter homered and added an RBI single in a six-run seventh as Los Angeles avoided a four-game sweep and remained 3½ games back for the AL’s second wild-card berth.

The loss snapped Oakland’s 12-game road winning streak, two shy of the franchise record set by the Philadelphia Athletics in May 1931. The A’s have been shut out a big league-high 16 times.

Brett Anderson (4-1) gave up five runs and nine hits in 6 2-3 innings. A’s rookie Yoenis Cespedes left midway through the fifth because of a sprained right wrist.

BLUE JAYS 8, MARINERS 3: In Toronto, Edwin Encarnacion hit his 40th home run, Adam Lind also connected and Toronto sent Felix Hernandez to his third straight loss.

Encarnacion hit a three-run drive into the second deck in left in a five-run fourth as the Blue Jays avoided a three-game sweep. Lind hit a two-run shot in the first.

Hernandez (13-8) allowed a season-high seven runs and 10 hits in four innings. He has a 9.00 ERA in his last three outings, losing three consecutive starts for the first time since Sept. 12-24 last year.

Henderson Alvarez (9-12) allowed three runs in seven innings to beat his childhood idol. Both men were born in Valencia, Venezuela.