Private
Sorts relationships based on order of supporting layers and tables in the service definition
the layers from the service
the tables from the service
the relationships to add for the service
An array with relationships that have been sorted
Sorts relationships based on order of supporting layers and tables in the service definition