NEW YORK — Carmelo Anthony scored 28 points, Kristaps Porzingis had 19 and the New York Knicks beat the Brooklyn Nets 108-91 on Friday night to get back to .500.

Arron Afflalo added 18 points for the Knicks (10-10), who dominated lowly Philadelphia and Brooklyn in their last two games after a four-game losing streak. They reclaimed city bragging rights with ease, leading by as much as 31 points.

Brook Lopez scored 21 points, and Thaddeus Young had 18 points and 11 rebounds for the Nets.

New York scored a season-best 42 points in the first quarter, led 65-42 at halftime and opened its first lead of 30 or more since the 2013-14 season in the third quarter.

PISTONS 102, BUCKS 95: Andre Drummond had 17 points and 23 rebounds, Reggie Jackson scored 23 points, and Detroit won at home.

Milwaukee’s Greg Monroe had 14 points and 13 rebounds against his former team. Another ex-Piston, Khris Middleton, led the Bucks with 21 points.

WIZARDS 109, SUNS 106: Bradley Beal scored 34 points, Ramon Sessions added 18 and Washington rallied past visiting Phoenix.

Eric Bledsoe scored 22 points, and Brandon Knight had 19 for the Suns.

The Wizards played without Marcin Gortat, who traveled home to Poland because of a family emergency.

HAWKS 100, LAKERS 87: Al Horford scored 16 points, and Paul Millsap and Kent Bazemore each added 15 as Atlanta won at home.

Kobe Bryant scored 14 points on 4-for-19 shooting for the Lakers.