Added sort for classes, traits and interfaces for namespaces

Related to #9