Manny Machado blooped an RBI single barely ahead of left fielder Matt Joyce's desperate drive with two outs in the 14th inning and the Baltimore Orioles beat Tampa Bay 3-2 Thursday, completing a three-game sweep and remaining atop the AL East.

With their 81st victory — and 13th in a row in extra innings — the Orioles formally ended a franchise-record run of 14 consecutive losing seasons. Baltimore (81-62) started the day in a first-place tie with the New York Yankees, who faced Boston on Thursday night.

The Rays fell four games back in the division by virtue of yet another one-run defeat punctuated by a lack of offensive punch. Tampa has lost 13 of its last 16 one-run games, including a 3-2 decision Wednesday night.

Sixteen pitchers took part in the game, which lasted 5 hours, 14 minutes. Baltimore's bullpen kept the Rays scoreless on four hits over the final 6 2-3 innings.

After the Orioles squandered a bases-loaded, no-out threat in the 13th, Chris Archer (0-3) got the first two outs in the 14th before Adam Jones walked and Endy Chavez singled. Machado followed with a soft liner toward the line that Joyce trapped.

Randy Wolf (2-0) earned the win by striking out Joyce with two on in the top of the 14th.

The Orioles have won 14 of 19 overall and are 26-11 since Aug. 3. Baltimore's sixth three-game sweep of the season completed a 5-2 homestand against the Yankees and Tampa Bay.

The Rays next travel to Yankee Stadium for a three-game series that begins Friday night.

Although the Orioles blew a 2-1 lead in the eighth inning, they improved to 64-0 when leading after the seventh.

Orioles rookie Wei-Yin Chen gave up two runs and eight hits in 7 1/3 innings.

Tampa Bay starter Jeremy Hellickson allowed four hits and three walks in five-plus innings. 

Yankees 2, Rays 0

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

ANAHEIM, Calif. — 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 1/2 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.

Indians 5, Rangers 4

ARLINGTON, Tex. — Jason Kipnis hit a two-run homer in the ninth inning off Joe Nathan and the Cleveland Indians snapped a five-game losing streak.

The Rangers remained three games ahead of Oakland in the AL West after the Athletics lost to the Los Angeles Angels.

Nathan (2-4) had converted a club-record 31 straight save chances before the Indians erased a 4-2 deficit in the ninth. The right-hander's only other blown save this season came April 11 against Seattle.

Ezequiel Carrera homered leading off the ninth. Pinch hitter Russ Canzler singled and Kipnis homered off to chase Nathan, who did not record an out.

Scott Maine (1-0) got the final two outs in the eighth in his third appearance with the Indians this season. Chris Perez pitched the ninth for his 36th save in 40 tries, helping Cleveland avoid a three-game sweep.

Texas slugger Josh Hamilton, who leads the majors with 41 home runs and 121 RBIs, missed the game with soreness in his left knee.

Matt LaPorta had three hits, including a two-run homer for the Indians, who are just 16-43 since the All-Star break.

Cleveland starter Zach McAllister allowed two runs and eight hits in six innings. The right-hander gave up seven runs over five innings in his previous start against the Rangers on Sept. 2.

Texas starter Derek Holland allowed seven hits and two runs. The Ohio native struck out seven and hasn't lost since July 31.

Twins 4, Royals 3

MINNEAPOLIS — Denard Span had a game-ending RBI double in the 10th inning and the Minnesota Twins rallied for a 4-3 victory over the Kansas City Royals on Thursday night.

Trailing 3-1, the Twins capitalized on a bases-loaded walk by Royals closer Greg Holland in the eighth and Trevor Plouffe's homer in the ninth to tie it.

Alexi Casilla led off 10th with a double to right-centre off Francisley Bueno (1-1) that fell just beyond the glove of diving centre fielder Lorenzo Cain, who injured his leg on the play and had to leave the game. Span then hit a double over the head of right fielder Eric Hosmer for the win.

Closer Glen Perkins (3-1) pitched two scoreless innings for the win.

Josh Willingham also connected for Minnesota and Salvador Perez had two RBIs for the Royals.

Tigers-White Sox, ppd.

CHICAGO — Rain postponed the series finale between the Detroit Tigers and Chicago White Sox. And when the top two teams in the AL Central make the game up this coming Monday, there will be different starters.

Justin Verlander, the reigning AL Cy Young Award winner and MVP who has won 12 of his previous 13 decisions against the White Sox, will now go against the Indians in Cleveland on Friday night. Doug Fister will start Monday afternoon at U.S. Cellular Field.

Sixteen-game winner Chris Sale gets the nod Friday in Minnesota with the White Sox turning to Gavin Floyd on Monday.

The game was called Thursday night after a little more than an hour's delay.