Fix bug that prevents parent componet classes from being sorted properly.