Fixed bug where the class heirarchy was not generating properly if the items were not in the proper alphabetical order