NEW YORK -- Feeling good after his best performance since knee surgery, D'Angelo Russell was just happy his struggling team won.
Especially because of what it meant to Jahlil Okafor.
Russell scored 22 points, Okafor capped the decisive spurt of the game with a basket against his former team, and the Brooklyn Nets beat the Philadelphia 76ers 116-108 on Wednesday night to snap a four-game skid.
"You get traded you want to put up numbers and get the win at the end of the day," Russell said, "and we got that win for him."
Spencer Dinwiddie scored 27 points, while rookie center Jarrett Allen, making his first start at home, had 16 points and 12 rebounds for the Nets, who took charge of a close game with an 11-0 run early in the fourth quarter.
Dinwiddie had six points during the surge, which started with a 3-pointer by Nik Stauskas and ended on a bucket by Okafor in the first meeting since the 76ers sent both of them to Brooklyn in December.
"If I were to say that that win didn't feel great, I would be lying," Okafor said. "So it felt awesome to be able to pull it out, and for me and Nik to be able to go out there and help win was great."
Joel Embiid had 29 points and 14 rebounds for the 76ers, who dropped their third straight and fell back to .500 at 24-24. Ben Simmons scored 24 points and J.J. Redick added 20 in his return from a seven-game absence with a leg injury.
"That's a .500 team. That's what a team like that does. You go up and down, up and down, up and down," coach Brett Brown said. "This team can beat anybody and it can lose to anybody. That's part of the wild ride we're on with a bunch of 20-year-olds figuring stuff up."
Simmons was 9 of 10 for 18 points in his first 14 minutes but the Sixers couldn't build much of a lead in part because of Russell, who recently returned from a two-month absence and felt good enough to play on both nights of a back-to-back. He hadn't scored 20 since mid-November, before the surgery.
"They got some talent over there and for us to get any win in this league is definitely a start, so hopefully we can capitalize on it and keep building," Russell said.
Neither team led by double digits through three quarters and the 76ers were ahead 92-91 in the opening minute of the fourth before Stauskas made a 3-pointer. Dinwiddie followed with three free throws and another 3, and Okafor scored inside to cap the run and make it 102-92 with 7:09 to play.
"We forgot how to play defense," Embiid said.
Embiid tried to bring the Sixers back, bulling his way for consecutive baskets that cut it to 111-107. But soon after he fouled Allen and DeMarre Carroll, who made all four free throws to keep Brooklyn safely ahead.
76ers: Brown said he expects No. 1 draft pick Markelle Fultz, who appeared in just four games before a right shoulder injury, to play again this season. Brown just can't predict when. "It's just an answer that I can't give anybody, we can't give anybody, nor can he," Brown said. "I mean at the end of the day it's going to be when he feels good about himself and feels good about his shoulder, and that's almost the bottom line. We'll help him, but really he's got to feel comfortable that he can go be himself and none of us should begrudge him for that."
Brown said the only reason Okafor wasn't playing in Philadelphia was because of the big men ahead of him in a crowded frontcourt the last couple of seasons.
"What everybody should really hear is, he's just so young. He was drafted third for a reason," Brown said. "He's a hell of a player and for us in the time and the moment that we're in and with Joel, etc., the court time just wasn't available."
SUPPORT FOR SAM
Atkinson on former 76ers executive Sam Hinkie, whose strategy of building through the draft was heavily debated.
"I think of Sam Hinkie, there should be a management award for him, or a management study on what he did," Atkinson said. "We can argue you like it, you don't like it, but I was around him. I really like him as a person and I just think he did a phenomenal job and thinking long term like that, to have that vision that most of us don't have, let's be honest, I don't think he gets enough credit."
76ers: Host the Miami Heat on Friday.
Nets: Host the Los Angeles Lakers on Friday.
More AP basketball: https://apnews.com/tag/NBAbasketball
Raptors, Nuggets face off in game between conference leaders
Sunday night's marquee matchup in the NBA features the top teams in the Eastern and Western Conference.
Which player had the best sneakers of Week 9 in the NBA?
PJ Tucker is back with another fire pair, Stephen Curry pays homage to the Bay Area and Nick Young is back for kicks of the week.
Buy or sell: Joel Embiid is the best player in the East
Is Giannis Antetokounmpo, Kawhi Leonard or Joel Embiid the king of the East?