PHOENIX — The Dodgers were going to head back to Los Angeles from a successful road trip regardless of what happened in their series finale against Arizona.
To close it out with a dramatic comeback and complete a three-game sweep, they couldn't have scripted it any better.
Hanley Ramirez and A.J. Ellis hit consecutive homers in the 14th inning after Ellis tied the game with two outs in the ninth, helping the Los Angeles Dodgers beat first-place Arizona 7-5 Wednesday night for their first sweep of the Diamondbacks in two years.
"For us to walk out of here fighting and grinding the way we did, it's going to make for a real fun trip home," Ellis said.
Los Angeles won six of its first eight games on the road trip, including the first two against Arizona.
The Dodgers closed it out with a flourish.
With the Dodgers still in it because of Ellis' hit in the ninth off Heath Bell, Ramirez hit the first pitch of the 14th off Josh 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.
A team that was 12 games under .500 and 9½ games out of first on June 22, the Dodgers are back to .500 and 1½ games back of the Diamondbacks in the NL West after winning 15 of 18.
"Obviously, you want to come in and win a series, but to win three was big for us because it's a two-game swing when you're playing them," Dodgers manager Don Mattingly said. "I really felt like before we got here, we really got ourselves back into it, where we were in the race and we knew it. This has been icing on the cake."
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.
Arizona appeared to be in position for the victory after Bell got two quick outs.
But, as has been the case lately, the Diamondbacks couldn't hold the lead.
Adrian Gonzalez, who led off the seventh inning with a solo homer, worked a two-out walk off Bell in the ninth inning, then Ramirez moved pinch runner Jerry Hairston to second with a single. Ellis followed with his tying single off Bell, his fifth blown save and the Diamondbacks 19th.
"We have to figure out some things so guys can get some outs later in the game," Diamondbacks manager Kirk Gibson said.
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 further damage by getting Van Slyke to hit into an inning-ending double play.
|San Francisco - LP: J. Peavy||2||FINAL|
|Kansas City - WP: K. Herrera||7|
|San Diego||10/23/14 7:25 PM|
|Detroit||10/26/14 8:30 AM|
|Buffalo||10/26/14 12:00 PM|
|St. Louis||10/26/14 12:00 PM|
|Houston||10/26/14 12:00 PM|
|Minnesota||10/26/14 12:00 PM|
|Seattle||10/26/14 12:00 PM|
|Baltimore||10/26/14 12:00 PM|
|Miami||10/26/14 12:00 PM|
|Chicago||10/26/14 12:00 PM|
|Philadelphia||10/26/14 3:05 PM|
|Oakland||10/26/14 3:25 PM|
|Indianapolis||10/26/14 3:25 PM|
|Green Bay||10/26/14 7:30 PM|
|Washington||10/27/14 7:30 PM|
|Connecticut||10/23/14 6:00 PM|
|(18) East Carolina|
|Miami-Florida||10/23/14 7:00 PM|
|So Florida||10/24/14 6:00 PM|
|Troy||10/24/14 6:30 PM|
|BYU||10/24/14 8:00 PM|
|(6) Oregon||10/24/14 9:00 PM|
|North Texas||10/25/14 11:00 AM|
|UAB||10/25/14 11:00 AM|
|Rutgers||10/25/14 11:00 AM|
|Maryland||10/25/14 11:00 AM|
|Texas||10/25/14 11:00 AM|
|(11) Kansas State|
|Minnesota||10/25/14 11:00 AM|
|Memphis||10/25/14 11:00 AM|
|North Carolina||10/25/14 11:30 AM|
|San Jose St||10/25/14 12:00 PM|
|Northern Ill||10/25/14 12:00 PM|
|(25) UCLA||10/25/14 1:00 PM|
|Akron||10/25/14 1:00 PM|
|Massachusetts||10/25/14 1:00 PM|
|Ohio U||10/25/14 1:00 PM|
|Ga Southern||10/25/14 1:00 PM|
|Kent State||10/25/14 1:30 PM|
|Oregon State||10/25/14 2:30 PM|
|Fla Atlantic||10/25/14 2:30 PM|
|Louisiana Tech||10/25/14 2:30 PM|
|(1) Miss State||10/25/14 2:30 PM|
|Georgia Tech||10/25/14 2:30 PM|
|(22) West Virginia||10/25/14 2:30 PM|
|Texas Tech||10/25/14 2:30 PM|
|Michigan||10/25/14 2:30 PM|
|(8) Michigan State|
|Boston College||10/25/14 2:30 PM|
|Central Mich||10/25/14 2:30 PM|
|Vanderbilt||10/25/14 3:00 PM|
|Old Dominion||10/25/14 3:00 PM|
|UNLV||10/25/14 3:00 PM|
|Temple||10/25/14 4:00 PM|
|(15) Arizona||10/25/14 5:00 PM|
|Texas-El Paso||10/25/14 6:00 PM|
|Wyoming||10/25/14 6:00 PM|
|Syracuse||10/25/14 6:00 PM|
|Texas State||10/25/14 6:00 PM|
|(3) Ole Miss||10/25/14 6:15 PM|
|(4) Alabama||10/25/14 6:30 PM|
|So Carolina||10/25/14 6:30 PM|
|(13) Ohio State||10/25/14 7:00 PM|
|(20) USC||10/25/14 9:00 PM|
|(14) Arizona State||10/25/14 9:45 PM|
|Nevada||10/25/14 10:59 PM|
|Real Salt Lake||2|
|Montreal||10/24/14 5:30 PM|
|Saskatchewan||10/24/14 8:30 PM|
|Hamilton||10/25/14 3:00 PM|
|Brt Columbia||10/25/14 6:00 PM|
|Hamilton||10/31/14 6:30 PM|
|Winnipeg||11/1/14 3:00 PM|
|Brt Columbia||11/1/14 6:00 PM|