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.
|NY Yankees - LP: M. Pineda||0||FINAL|
|Toronto - WP: D. Hutchison||2|
|Detroit - LP: M. Scherzer||3||FINAL|
|Chicago WSox - WP: C. Sale||6|
|Chicago Cubs - WP: F. Doubront||5||FINAL|
|St. Louis - LP: J. Masterson||1|
|Cincinnati - LP: A. Simon||2||FINAL|
|Pittsburgh - WP: V. Worley||3|
|Minnesota - K. Gibson||6:05 PM|
|Baltimore - C. Tillman|
|Philadelphia - J. Williams||6:10 PM|
|NY Mets - B. Colon|
|Miami - J. Cosart||6:10 PM|
|Atlanta - A. Harang|
|Boston - A. Webster||6:10 PM|
|Tampa Bay - J. Odorizzi|
|Cleveland - T. Bauer||6:10 PM|
|Kansas City - J. Shields|
|Detroit - K. Ryan||6:10 PM|
|Chicago WSox - C. Bassitt|
|Texas - R. Ross Jr.||6:10 PM|
|Houston - S. Feldman|
|Colorado - T. Matzek||7:10 PM|
|Arizona - V. Nuno|
|Chicago Cubs - T. Wada||7:15 PM|
|St. Louis - M. Gonzales|
|Los Angeles - Z. Greinke||7:40 PM|
|San Diego - I. Kennedy|
|Milwaukee - M. Fiers||8:05 PM|
|San Francisco - J. Peavy|
|Oakland - J. Samardzija||8:05 PM|
|LA Angels - C. Rasmus|
|Washington - S. Strasburg||8:10 PM|
|Seattle - R. Elias|
|Green Bay||9/4/14 7:30 PM|
|(6) Jacksonville St||7||FINAL|
|(8) Michigan State||45|
|(5) Ohio State||34||FINAL|
|West Virginia||23||4th Qtr 10:00|
|Rice||17||4th Qtr 3:32|
|(17) Notre Dame||48|
|(10) South Dakota St||18||4th Qtr 1:13|
|Fla Atlantic||7||4th Qtr 10:11|
|California||31||4th Qtr 5:18|
|Marshall||35||4th Qtr 8:37|
|UC Davis||0||4th Qtr 11:00|
|Arkansas||21||4th Qtr 13:55|
|(16) Clemson||14||2nd Qtr 11:51|
|Liberty||7||1st Qtr 3:15|
|(23) North Carolina||14|
|Ohio U||7||2nd Qtr|
|Louisiana Tech||6:00 PM|
|Stephen F Austin||6:10 PM|
|(20) Kansas State|
|Fresno State||6:30 PM|
|Southern Miss||6:30 PM|
|Texas-El Paso||7:00 PM|
|North Texas||7:00 PM|
|(1) Florida State||7:00 PM|
|(14) Wisconsin||8:00 PM|
|South Dakota||9:30 PM|
|(25) Washington||9:30 PM|
|Utah State||8/31/14 6:00 PM|
|SMU||8/31/14 6:30 PM|
|Miami-Florida||9/1/14 7:00 PM|
|Arizona||9/4/14 7:00 PM|
|Pittsburgh||9/5/14 6:00 PM|
|Washington St||9/5/14 9:30 PM|
|SMU||9/6/14 11:00 AM|
|Fla Atlantic||9/6/14 11:00 AM|
|Buffalo||9/6/14 11:00 AM|
|(24) Missouri||9/6/14 11:00 AM|
|Arkansas State||9/6/14 11:00 AM|
|(8) McNeese State||9/6/14 11:00 AM|
|Central Mich||9/6/14 11:00 AM|
|Akron||9/6/14 11:00 AM|
|Western Ill||9/6/14 11:00 AM|
|(20) Kansas State||9/6/14 11:00 AM|
|(4) Oklahoma||9/6/14 11:00 AM|
|Western Ky||9/6/14 11:00 AM|
|SC State||9/6/14 11:30 AM|
|Navy||9/6/14 12:00 PM|
|UAB||9/6/14 1:00 PM|
|South Alabama||9/6/14 1:00 PM|
|New Mexico St||9/6/14 1:00 PM|
|Colorado||9/6/14 2:00 PM|
|Fresno State||9/6/14 2:00 PM|
|(1) Eastern Wash||9/6/14 2:00 PM|
|(15) USC||9/6/14 2:30 PM|
|Ohio U||9/6/14 2:30 PM|
|Middle Tennessee||9/6/14 2:30 PM|
|Northern Ill||9/6/14 2:30 PM|
|Missouri State||9/6/14 2:30 PM|
|Ball State||9/6/14 2:30 PM|
|Maryland||9/6/14 2:30 PM|
|Eastern Mich||9/6/14 3:00 PM|
|Georgia Tech||9/6/14 3:00 PM|
|(18) Ole Miss||9/6/14 3:30 PM|
|Old Dominion||9/6/14 5:00 PM|
|(8) Michigan State||9/6/14 5:30 PM|
|(19) Arizona State||9/6/14 6:00 PM|
|Louisiana Tech||9/6/14 6:00 PM|
|San Jose St||9/6/14 6:00 PM|
|East Carolina||9/6/14 6:00 PM|
|(9) So Carolina|
|Duke||9/6/14 6:00 PM|
|Idaho||9/6/14 6:00 PM|
|(17) Sam Houston St||9/6/14 6:30 PM|
|Michigan||9/6/14 6:30 PM|
|(17) Notre Dame|
|Lamar||9/6/14 6:30 PM|
|(21) Texas A&M|
|Northwestern St||9/6/14 6:30 PM|
|BYU||9/6/14 6:30 PM|
|Citadel||9/6/14 6:30 PM|
|(1) Florida State|
|San Diego St||9/6/14 7:00 PM|
|(23) North Carolina|
|Virginia Tech||9/6/14 7:00 PM|
|(5) Ohio State|
|Memphis||9/6/14 9:00 PM|
|Colorado State||9/6/14 9:15 PM|
|Air Force||9/6/14 9:15 PM|
|Oregon State||9/6/14 9:30 PM|
|Texas Tech||9/6/14 10:00 PM|
|New England||3||2nd Half 15:00|
|FC Dallas||7:30 PM|
|Real Salt Lake||9:30 PM|
|Winnipeg||8/31/14 3:00 PM|
|Toronto||9/1/14 12:00 PM|
|Edmonton||9/1/14 3:30 PM|
|Brt Columbia||9/5/14 6:30 PM|
|Calgary||9/6/14 6:00 PM|
|Hamilton||9/7/14 12:00 PM|
|Saskatchewan||9/7/14 3:00 PM|
Poll: How sure are you that the Twins are on the road to improving?