Fixed an issue with Content Spec relationships not holding order when sorted. Refactored some methods and added a new class to track
Process relationships.