Updated

Ivan De Jesus showed some surprising muscle at the plate and Dee Gordon hung tough turning two.

Thanks to the young middle infielders, the Dodgers extended their winning streak to six games.

De Jesus hit a two-run double with two outs in the ninth to give the Dodgers the lead and Gordon went airborne to turn a game-ending double play as Los Angeles rallied past the Arizona Diamondbacks 8-7 on Tuesday night.

"I was just looking for a fastball," said De Jesus, who also had a sacrifice fly to tie the game at 6 in the seventh inning. "I just wanted to be aggressive and I got a good swing. I've been waiting for this moment. I'm happy for this moment, happy to help out to help the Dodgers win games."

De Jesus returned to the Dodgers three days ago from the minors when Mark Ellis was placed on the 15-day disabled list and had recorded a total of four at-bats.

"I'll never forget this game," De Jesus said.

Injuries don't seem to slow the NL West-leading Dodgers.

Los Angeles has won 10 of its past 13 games and is 7-2 without injured center fielder Matt Kemp.

"Guys don't care that Matt's hurt," said Tony Gwynn, who finished with three hits and two RBIs. "At the end of the day we've got a job to do."

The Diamondbacks, who squandered a five-run lead going into the seventh, took a 7-6 lead in the bottom of the eighth on Lyle Overbay's homer off Josh Lindblom (2-0).

J.J. Putz (0-3) couldn't close it for Arizona in the ninth. He walked Elia Herrera and Bobby Abreu with one out, and then struck out Andre Ethier. But De Jesus doubled over the head of Chris Young in center, scoring both runners to give the Dodgers their first lead of the game.

A third strike that got away from catcher A.J. Ellis and a single by Justin Upton put runners on first and third with one out in the bottom of the ninth for Arizona against Kenley Jansen.

Dodgers manager Don Mattingly decided not to walk the left-handed hitting Jason Kubel to load the bases for Young, and the strategy worked. Kubel hit a tailor-made double-play ball to De Jesus at second. He flipped to Gordon, who leaped high over a late-sliding Upton to make a one-hop throw to first and complete the double play.

"That was huge, Dee standing in there when he's giving up 60 pounds at least to Justin," Gwynn said.

Jansen earned his seventh save.

"We're playing pretty good baseball and getting runs," Mattingly said. "But for me it all goes back to stay humble and go back to work. There's a lot of baseball left to be played."

Overbay finished with four hits, Josh Bell also homered and Upton drove in a pair of runs and had three hits for the Diamondbacks, who have lost 10 of their past 11 home games.

The Diamondbacks stormed out to a 5-0 lead before the Dodgers used five hits and a pair of errors to start the seventh inning to rally from a 6-1 deficit.

"In the seventh we brought two relieves in and didn't get any outs out of them," Arizona manager Kirk Gibson said. "We are not playing good enough in that situation against a team that's way too good and very opportunistic and they capitalized on our mistakes."

The bullpen's collapse wasted a solid outing by Arizona starter Trevor Cahill. Cahill scattered six hits over six innings, allowing one run while striking out six and walking three.

Bell gave the Diamondbacks a 2-0 lead in the second with a home run to center off starter Aaron Harang. It was Arizona's first since Upton homered against Colorado on May 17.

Upton hit a run-scoring single in the third and an RBI double in the fifth, and Kubel added a sacrifice fly in the fifth to give the Diamondbacks a 5-0 lead.

The Dodgers broke through against Cahill in the sixth on consecutive infield singles, a wild pitch and a sacrifice fly by Ethier to make it 5-1.

Henry Blanco, starting in place of the injured Miguel Montero, doubled home Overbay in the sixth against Scott Elbert for a 6-1 Arizona lead.

NOTES: Major League baseball announced two scoring changes before the game that affected the Dodgers. Dodgers INF Justin Sellers was credited with a single on his ground ball to third base in the sixth inning, which was originally ruled as an error on Bell. Ethier was credited with a double and RBI for his line drive to deep center field in the top of the fifth inning on May 17 at San Diego. The play was originally scored as an error on Cameron Maybin. ... Gibson said Montero, who strained his left groin in the sixth inning of the Dodgers' 6-1 win on Monday, will be out until at least Friday. . Bell's home run was his first since August 28, 2010 with the Baltimore Orioles against the Los Angeles Angels. . LHP Ted Lilly will bring his perfect 5-0 record into Wednesday night's series finale against fellow LHP Joe Saunders.