Added sort for classes, traits and interfaces for packages