NEW YORK (AP) Dirk Nowitzki had 23 points and nine rebounds, J.J. Barea scored 20 and the Dallas Mavericks beat the Brooklyn Nets 111-104 Sunday.
Harrison Barnes added 19 points for the Mavericks.
Brook Lopez scored 27 points and Spencer Dinwiddie had 18 for the Nets. Randy Foye and Quincy Acy each had 11.
The Mavericks led 94-92 with more than five minutes left before Barea scored nine straight Dallas points. Barnes followed with two layups that made it 107-101 with 26.5 seconds remaining.