Sort times.dat by time to improve scan performance