Jose Ramirez delivered a go-ahead, two-run double in the seventh inning and the Cleveland Indians beat the Chicago White Sox 5-4 Thursday night for a four-game sweep in a matchup of playoff-bound teams.

The victory pulled the Indians within one game of Chicago for the fourth seed and home-field advantage in the first round of the postseason. The idle Twins lead the White Sox by one game in the AL Central with three to play.

The Indians have won five straight and the White Sox have lost a season-high five in a row.

"If there is anyone you'd want at the plate right now, it has to be Jose," Cleveland pitcher Zach Plesac said. "He's at next level. Next level. It's so cool watching him hit."

Chicago scored three times in the top of the seventh to take a 4-1 lead, but the Indians answered with four in the bottom half. Ramirez's two-out double to center off Carlos Rodon (0-2) drove in Cesar Hernandez and Delino DeShields.

"My expectation did not come to fruition with what I thought we were going to see," White Sox manager Rick Renteria said. "If everybody wants to put it on me, put it on me."

On Tuesday night, Ramirez hit a three-run homer with two outs in the 10th to give Cleveland a 5-3 win over White Sox that clinched a playoff spot.

The MVP candidate went 2-for-3 in the series finale and is hitting .485 with eight homers and 20 RBI over his past 13 games.

"Jose is a lot of fun to watch, and he's doing everything right now," Indians acting manager Sandy Alomar Jr. said. "All the guys just kept fighting. This team never stops battling."

White Sox starter Dallas Keuchel allowed one run in six innings in his second start since a stint on the injured list because of back spasms.

"It's a little somber," Keuchel said. "I think we take all losses hard, which makes it tough. We've been playing some really good baseball, but we've just been outexecuted."

Toronto 4, N.Y. Yankees 1: Hyun Jin Ryu pitched seven shutout innings and the Blue Jays clinched their first postseason spot since 2016, beating the Yankees and further damaging New York's chances of hosting a first-round playoff series. New York remained two games behind the White Sox for the fourth seed.

Houston 12, Texas 4: Alex Bregman's three extra-base hits included one of Houston's four home runs, and the Astros trimmed their magic number to one for clinching the American League's last playoff spot with a win over the host Rangers. George Springer and Jose Altuve also went deep with runners on base.

Baltimore 14, Boston 1: Jose Iglesias, Pat Valaika and Austin Hays homered to lead the visiting Orioles past the Red Sox in a struggle for last place in the AL East.

Kansas City 8, Detroit 7: Salvador Perez hit a three-run homer, Maikel Franco hit a go-ahead homer in the sixth inning and the host Royals beat the Tigers in a game between two teams eliminated from postseason play.

National League

N.Y. Mets 3, Washington 2: Robinson Chirinos homered and drove in three runs, and the visiting Mets beat the Nationals on to keep their flickering postseason hopes alive.

St. Louis 5, Milwaukee 2: Yadier Molina singled twice to reach 2,000 hits and the host Cardinals began a five-game series between playoff contenders.

Miami 4, Atlanta 2: Jon Berti had three hits, including a two-run double, Pablo Lopez allowed only two hits in five scoreless innings and the Marlins beat the Braves to boost their playoff hopes.

Colorado 5, San Francisco 4 (11): Raimel Tapia hit a go-ahead sacrifice fly in the 11th inning, and the Rockies rallied to keep the Giants from gaining ground in the NL wild-card race.

Pittsburgh 7, Chicago 0: Chad Kuhl pitched seven sharp innings and Colin Moran and Bryan Reynolds had home runs among their three hits each in the Pirates' shutout over the slumping Cubs.