Sort data by elapsed time