nKeyConstraint` objects as well as explicit dependencies
    added by :meth:`.Table.add_is_dependent_on`.

    .. warning::

        The :func:`.sort_tables` function cannot by itself accommodate
        automatic resolution of dependency cycles between tables, which
        are usually caused by mutually dependent foreign key constraints.
        To resolve these cycles, either the
        :paramref:`.ForeignKeyConstraint.use_alter` parameter may be appled
        to those constraints, or use the
        :func:`.sql.sort_tables_and_constraints` function which will break
        out foreign key constraints involved in cycles separately.

    :param tables: a sequence of :class:`.Table` objects.

    :param skip_fn: optional callable which will be passed a
     :class:`.ForeignKey` object; if it returns True, this
     constraint will not be considered as a dependency.  Note this is
     **different** from the same parameter in
     :func:`.sort_tables_and_constraints`, which is
     instead passed the owning :class:`.ForeignKeyConstraint` object.

    :param extra_dependencies: a sequence of 2-tuples of tables which will
     also be considered as dependent on each other.

    .. seealso::

        :func:`.sort_tables_and_constraints`

        :meth:`.MetaData.sorted_tables` - uses this function to sort


    Nc