San Francisco has taken advantage of Los Angeles' recent struggles to return to the NL West race.