PHOENIX — Hanley Ramirez and A.J. Ellis hit consecutive homers in the 14th inning off Josh Collmenter, helping the Los Angeles Dodgers beat the Arizona Diamondbacks 7-5 on Wednesday night to complete a three-game sweep.
Ellis tied the game with a two-out, run-scoring single in the ninth inning off Heath Bell and Ramirez hit the first pitch of the 14th off Collmenter (4-2) just over the wall in right field. Five pitches later, Ellis made it 7-5 with his fourth homer.
Kenley Jansen (3-3) pitched the final two innings for the Dodgers, who used all of their position players and had Zack Greinke, Monday's starter, pinch hit in the 10th inning.
Los Angeles has won 15 of 18 to move within 1 1-2 games of the NL West lead after its first sweep of Arizona since 2010.
Arizona went through eight pitchers in the 19th game in the majors to go at least 14 innings this season, according to STATS. There were 20 total last season.
Aaron Hill homered and drove in two runs, and Paul Goldschmidt hit a two-run double for the Diamondbacks, who went seven innings — until two outs in the 12th — without a hit.
Adrian Gonzalez led off the seventh inning with a solo homer to cut Arizona's lead to 5-4, then worked a two-out walk off Bell in the ninth. Ramirez followed with a single and Ellis tied the game with a run-scoring single on Bell's fifth blown save — 19th by the Diamondbacks.
The more than five-hour game started with the teams trading leads.
Tyler Skaggs had a superb return to Arizona's rotation on Friday, allowing three hits and striking out five in eight scoreless innings against Colorado after being called up from Triple-A Reno. The left-hander wasn't nearly as good against the Dodgers, giving up a run on Scott Van Slyke's sacrifice fly in the fourth inning and a two-run double to Ramirez that put the Dodgers up 3-2 in the fifth. Skaggs then walked two to load the bases, but reliever Will Harris prevented any further damage by getting Van Slyke to hit into an inning-ending double play.
Skaggs allowed three runs on eight hits in 4 1-3 innings.
Hyun-Jin Ryu wasn't much better.
He gave up a solo homer to Hill in the first inning and a sacrifice fly to him in the third. Given the lead back, Ryu allowed a pair of one-out singles in the fifth and Goldschmidt followed with his two-run double. Martin Prado made it 5-3 with a run-scoring single.
Ryu allowed five runs on seven hits in five innings, the second time in 18 starts he's failed to reach the sixth inning.
Gonzalez led off the seventh inning with his 14th homer off David Hernandez to cut Arizona's lead to 5-4, then set the tying run — scored by pinch-runner Jerry Hairston Jr. — after fouling off five pitches from Bell, who's allowed nine runs his past 11 outings.
With fans falling asleep in the stands, Ramirez and Ellis put the Dodgers ahead for good with their homers in the 14th.
Notes: Dodgers 2B Skip Schumaker sat out and will not play Thursday after having his two-game suspension upheld by Major League Baseball. He was one of eight people suspended following a bench-clearing brawl against Arizona on June 11. ... The Dodgers' Ricky Nolasco and Greinke, who started the series' first two games, were the first pair of starting pitchers to go at least a combined 5-for-5 at the plate in consecutive games since Cincinnati's Tim Pugh and John Smiley did it May 6-7, 1994, according to information provided to the Dodgers by the Elias Sports Bureau. ... Wade Miley will pitch for Arizona in the opener of a four-game series against Milwaukee on Thursday. The left-hander won for the first time in a month by allowing a run in eight innings against the Rockies on Saturday. ... RHP Yovani Gallardo, who will start against the Diamondbacks, has allowed 15 earned runs over his past three starts.