Sorting methods is now based on number of parents declaring class has