sortTablesByReferences

fun sortTablesByReferences(tables: Iterable<Table>): List<Table>

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