The Dallas Mavericks could still make the NBA playoffs after a comeback win over the Sacramento Kings.