A dramatic, come-from-behind walk-off win let allowed the Diamondbacks to keep pace with the Mets and Reds.