split loop to sort in time order