Design for sorting ModuleHeads & dependencies in preparation for Module parsing.