culling, and sort by end time