Pointer to better algorithm for sorting type definitions.