Sorted classes in packages