Partial and total orderings of dependence on tables with given margins