MIAMI -- Josh Richardson's layup with 5.1 seconds left capped a Miami rally from eight points down in the fourth, Donovan Mitchell missed what would have been the winner at the buzzer and the Heat beat the Utah Jazz 103-102 on Sunday.
Tyler Johnson and Goran Dragic each scored 16 points for Miami, which has won four straight -- all by single digits, the Heat's longest stretch of such games since November 2012.
Richardson and Hassan Whiteside each had 14 points, and Kelly Olynyk had 12.
Complete coverage of the Philadelphia 76ers and their rivals in the NBA from NBC Sports Philadelphia.
Mitchell scored 19 of his 27 points in the second half, but couldn't save Utah from dropping its seventh straight on the road. He went into the backcourt to take the final inbounds pass and wound up taking a jumper from the right side that missed as time expired.
Rodney Hood scored 17 points, Thabo Sefolosha added 13 and Derrick Favors 11 for the Jazz. Utah was up eight with 6:59 left, and was still up by five in the final 2 minutes before Miami closed on an 8-2 spurt.
Richardson's winner came after the Heat called a timeout with 7.8 seconds left, after corralling the rebound off of Hood's miss. Richardson got to the rim with ease, laid it in and Miami moved back to fifth in the Eastern Conference.
Miami improved to 2-14 when trailing after three quarters.
The Heat led for 20 of the 24 first-half minutes, but their lead was only 49-47 at the break.
Mitchell was 3 for 12 in the opening half, after going 5 for 14 against the Heat when the teams met in November. It was like he was due to break out -- and did just that, needing only 3 minutes to score Utah's first 11 points of the second half.
He made his first five shots of the third, ended up 6-for-8 for 13 points in the quarter and Utah took a 75-74 lead into the fourth (see full recap).
Porzingis, Jack help Knicks snap skid
DALLAS -- Kristaps Porzingis scored 29 points and Jarrett Jack made the tiebreaking basket with 31.2 seconds left as the New York Knicks beat the Dallas Mavericks 100-96 on Sunday night.
Kyle O'Quinn had 15 points and 11 rebounds, and Enes Kanter added 13 points and 18 boards for the Knicks, who ended a three-game losing streak and sent the Mavericks to their third straight loss -- all at home.
Harrison Barnes scored 25 points and Devin Harris had nine of his 11 in the fourth quarter as the Mavericks made yet another rally on the night they honored their long-time point guard Derek Harper by retiring his jersey.
Dallas never led in the game, and after coming up just short in furious fourth-quarter rallies against Golden State and Chicago earlier in their homestand, the Mavericks made another run after falling behind 90-77 with 4:48 to go.
Harris hit 3-pointers to start and end a 15-2 run over a 2:20 span to tie the score at 92. After Porzingis made two free throws and Barnes hit a short jumper, Jack used a screen to penetrate into the lane and drop in a floater.
J.J. Barea missed a long 3 that would have given Dallas the lead, and Courtney Lee hit four free throws in the final 16.6 seconds to seal it.
Kanter and Porzingis combined for 24 points in the first half. New York took a 56-52 halftime lead on the strength of 56 percent shooting, despite a sequence where Kanter missed a short hook shot and then four consecutive tips.
New York built its lead to 73-63 midway through the third quarter before the Mavericks closed the quarter on an 8-2 run.
But after Harris' three-point play cut the lead to 77-74 with 11:27 to play, Dallas did not score again for five minutes as the Knicks built the lead to 13.