Remove extraneous type information and use static sort method.