Added sort for classes, traits and interfaces

Related to #9