Added sort for classes, traits and interfaces for namespaces