Arrange the order of type declarations