sorting implementation classes by sorting type