Bob Dernier scored from third base on a wild throw by first baseman Keith Hernandez in the ninth, giving the Phillies a 6-5 victory over the New York Mets in the first game of a doubleheader last night in Philadelphia.

The Mets ended a five-game losing streak by taking the second game, 4-3, getting two runs in the first inning after shortstop Ivan DeJesus booted Mookie Wilson's grounder on the first pitch of the game. Hernandez singled home the first run off Ed Farmer (0-6) and Ron Hodges hit the first of two RBI singles.

Hernandez continued to atone by singling and stealing second to begin a two-run sixth that stretched the New York lead to 4-0. The runs came in on Hodges' hit and left fielder Gary Matthews' throw past third.

Ed Lynch (6-3) weakened in the sixth when Greg Gross' double, Mike Schmidt's triple and Tony Perez's single pulled the Phillies within 4-2. Doug Sisk pitched the last three innings for his seventh save, allowing an eighth-inning run on an infield hit by Matthews.

In the opener, Dernier opened the ninth with a single off reliever Jesse Orosco (4-4). Pete Rose sacrificed, Von Hayes popped out and Schmidt was intentionally walked.

Dernier stole third base, his third steal of the game; Schmidt held at first. With the count 2-2 on Bo Diaz, Orosco caught Schmidt off the bag, but Hernandez tried to get Dernier, drifting off third, and threw wildly.

Winner Al Holland (3-0) allowed no runs in 1 1/3 innings, striking out two.

Willie Hernandez relieved in the seventh for the Phillies and gave up pinch hitter Dave Kingman's 13th home run of the year, with a man on base. It was the eighth pinch-hit home run for the Mets this season, most in the majors. Hernandez had not allowed a run since June 3, a span covering 24 innings.