It took a series of quirks for the Dodgers to end their three-game skid. Kyle Farmer's sacrifice fly scored the go-ahead run in a sixth inning that included mistakes by Arizona's bullpen and helped Los Angeles beat the NL West-leading Diamondbacks 6-3 on Wednesday night. The scuffling Dodgers improved to 4-8 against their division rivals this year and avoided being swept for the second time this season on a night when they got back one of their injured stars.