Arrival time calculation and sort