By clinching the NL West, the Dodgers finished a remarkable turnaround in a season that had seemed lost.