The Mavericks reached the halfway mark of the NBA regular season Friday night.

They did so with a bang as they once again showed their ability to rebound from heart-wrenching losses.

Behind strong nights from Monta Ellis, Dirk Nowitzki, Shawn Marion and rookie Shane Larkin, the Mavericks rinsed off the stench of Wednesday’s nasty loss to the Los Angeles Clippers by outlasting Phoenix, 110-107, at US Airways Center.

The Mavericks salvaged a split of their two-game trip that started with such a thud in LA when the Mavericks blew a game they never should have lost.

Against the Suns, they made amends as Ellis led the way with 24 points, seven assists and six rebounds.

It was an important win since it pushed the Mavericks ahead of Phoenix into seventh place in the Western Conference. It leveled the season series at a win apiece with one meeting left in Dallas, which could carry significant weight for tiebreaker purposes when playoff seedings are concerned.

The Mavericks hope to get Devin Harris’ debut Saturday against Portland, but against the Suns, they got good mileage out of Larkin, who had six points and three assists while playing most of the third quarter, when the Mavericks opened their biggest lead of the game at 84-72 and were up by nine going into the fourth.

When the rookie scored on a dandy scoop shot with 2:42 to play, the Mavericks were up 104-94. But Markieff Morris converted a 4-point play, and P.J. Tucker also made a 3-pointer as the Suns crept within 106-101.

But Larkin saved the Mavericks with 1:19 to go with a drive on which he was fouled and made both free throws to push the lead back to seven.

And still, the Mavericks had to sweat. When Vince Carter inbounded a ball with 6.7 seconds left, it was tipped and came back and hit him while he was still out of bounds. So the Suns, down 110-107, had a shot to tie, but P.J. Tucker missed a 3-pointer.

Larkin, who had a season-best 18 points, played because Jose Calderon left the game with a right knee contusion. Larkin’s play was another positive as the Mavericks got back to seven games above .500.

As they got to the midpoint of the season with a 24-17 record, they take no solace in the fact that last season this time, they were 17-24.

Last season is not the sort of barometer they want to use for success or failure.

But it’s almost universal in the organization about what has been the best asset of the team thus far.

“Resiliency,” owner Mark Cuban said. “We keep on fighting back. We have a bad game, we come back and win a game. We find a way to put it together. I’d say resiliency and understanding that we can and will get a lot better.”

By the same token, Cuban understands there is one glaring weakness the Mavericks must address if they are to improve in the second half.

“Our rebounding,” he said. “And we go there in some respects as Sam goes. So hopefully he’s turned a corner, as well.”

That would be Samuel Dalembert, who picked up two quick fouls against the Suns and was largely ineffective in the first half.

Coach Rick Carlisle agreed with Cuban that the Mavericks’ ability to put difficult losses behind them has been a blessing. He just wishes they weren’t having to do that as often as they have.