sort themes and times