There is a `PackageComparator` almost identical to this on the serializers package. I dont like this duplication, can you think of a way to make it generic? Like creating a `PackageComparator` as a `Comparator<Class<?>> `.

Maybe we can extend this to something like: - if the class is declared on `BaseComponents`, return -1, else return +1.