Update script to generate sorted times and time-sorted index.