The Los Angeles Dodgers became the first team to clinch a postseason berth, wrapping up their first NL West title since 2009 when they rallied past Arizona 7-6 on Thursday behind two homers from Hanley Ramirez.
Despite an NL-high payroll of $214 million-plus on opening day, the Dodgers got off to a 30-42 start and were last in the division, 9½ games behind the first-place Diamondbacks, before play on June 22. Los Angeles has gone 58-23 since.
The Dodgers trailed 6-3 in the sixth and A.J. Ellis hit a tiebreaking homer off Josh Collmenter (4-4) leading off the eighth.
J.P. Howell (2-1) got two outs for the victory.
Ramirez, who sat out five of the last six games with an irritated nerve in his lower back, hit a three-run homer in the third inning and a tying solo shot in the seventh. It was his 13th career multihomer game and first since Aug. 18 of last year.
The Dodgers had lost nine of 12 and five of six entering Thursday.
PIRATES 10, PADRES 1
Neil Walker had four hits, including his 11th homer, and drove in three runs to Pittsburgh in stopping a three-game losing streak.
Pedro Alvarez hit his NL-leading 34th homer for Pittsburgh. Jose Tabata added two hits and three RBIs as the Pirates moved a game in front of Cincinnati for the top wild card spot in the NL. The rivals begin a three-game series in Pittsburgh on Friday.
Gerrit Cole (9-7) struck out a career-high 12 while allowing one run and four hits in six innings.
Pittsburgh scored four runs total while losing three straight games to the Padres but scored five in the fourth against Ian Kennedy (6-10). Alvarez homered to center with one out to give Pittsburgh the lead.
CUBS 5, BREWERS 1
Luis Valbuena, Nate Schierholtz and Brian Bogusevic homered, and Chicago stopped a five-game losing streak.