Fixed #23992 -- Optimized reorder_suite functions using OrderedSet

Django test suite setup takes 30s less after that patch. The problem was that the `if test not in bins[...]` have an inherent O(n) complexity, because they require implicit iteration over `bins[...]`.