GS-11543
Refactored type hierarchy sorting to TypeDescriptorUtils in common package.