sortTablesByReferences

Returns a list of tables sorted according to the targets of their foreign key constraints, if any exist.