Question d’entretien chez IBM

Sort intervals based on end time.