PHILADELPHIA -- After earning his first victory as a major league manager Sunday afternoon, Philadelphia Phillies interim boss Ryne Sandberg said he would like to save his lineup card.
Then he looked down at the one that was lying on a table before him, as he conducted his postgame news conference.
"This one's pretty messy," he said.
So was the game. The Phillies beat the Dodgers 3-2 when Los Angeles shortstop Hanley Ramirez misplayed a ground ball by pinch hitter Michael Young in the bottom of the ninth -- Ramirez's second error of the inning - allowing the winning run to score.
The Dodgers saw their season-long 10-game winning streak come to an end, but lost for just the ninth time in their last 51 games.
Philadelphia won for the first time in three games under Sandberg, who replaced the fired Charlie Manuel on Friday. The Phillies had also dropped their previous four.
"It's trying to start over and turn the page and get a new season started," Phillies starting pitcher Cole Hamels said of the managerial change.
A victory over the high-flying Dodgers was, he said, "a good start."
"My job," Sandberg said, "is to get the most out of the players and have us get better as a team. At this stage of the game it's about evaluation and showing improvement."
With the score tied 2-2 and one out in the ninth, Casper Wells reached on Ramirez's throwing error. Carlos Ruiz, who went 4-for-4, then singled to right against Brandon League (6-4), with Wells advancing to third.
After an intentional walk to pinch hitter Jimmy Rollins, Young, batting for shortstop Michael Martinez, grounded a ball to Ramirez at shortstop. He bobbled it, allowing Wells to score.
Ramirez, who tied a career high with his two errors, said afterward he was going to go to second in an attempt to turn an inning-ending double play.
"We had Young running," he said. "We would have turned it. I knew who was running."
Los Angeles manager Don Mattingly believed the game was lost long before that.
"I really don't think we did enough to win," he said. "We only scored two runs and we couldn't add on. Obviously you don't want to make errors. If we make plays in the ninth, the game is still going. But we had nine innings to get an extra run."
Jonathan Papelbon (3-1) picked up the victory with a scoreless inning in relief.
Andre Ethier gave the Dodgers a 1-0 lead when he hit Hamels' first pitch of the second inning into the seats in right-center field for his ninth homer of the year.
Los Angeles extended its lead on a two-out RBI single by Jerry Hairston Jr. in the fourth, a broken-bat hit that barely eluded the leap of Martinez at short. It was just the second hit in 24 career at-bats against Hamels for Hairston.
The Phillies cut it to 2-1 on Darin Ruf's solo homer off Dodgers starter Ricky Nolasco in the fourth, Ruf's eighth home run of the season.
Philadelphia tied it in the sixth. With one out, Nolasco hit Chase Utley with a pitch, then allowed a single to Domonic Brown. On the play, right fielder Yasiel Puig threw to third in a vain attempt to cut down Utley, allowing Brown to take second.
Ruf then walked to load the bases, and Cody Asche grounded into a forceout to chase in the tying run.
Nolasco pitched six innings and allowed two runs and five hits. He struck out five and walked one.
Hamels worked seven innings and allowed two runs and seven hits. He fanned eight without walking a batter.
NOTES: Ruiz tied a career high with his four hits, and he had his eighth multi-hit game of the season. ... Hamels is 1-2 with four no-decisions since July 9, despite pitching at least seven innings and allowing two runs or fewer in six of those seven starts. He is 5-13 overall. ... Nolasco (9-9) had won his three previous starts. He is 4-1 since the Dodgers acquired him from Miami on July 6. ... Phillies 1B Kevin Frandsen went 0-for-4 and is hitless in his last 12 at-bats. He is also mired in a 2-for-22 slump. ... Utley went 0-for-3 and is hitless in his last 10 trips. ... Young, yanked from Saturday's loss to the Dodgers in the second inning with what was described as left ankle soreness, did not start Sunday because, he told reporters, he is plagued by Achilles' tendinitis, something that flares up on occasion and requires rest.