Handle overlapping intervals by sorting and merging — essential for calendar, scheduling, and range problems.