Sorts the activities by title then time.