          test_databases = deferred
      return ordered_test_databases
  
  
  def reorder_suite(suite, classes):
      """
      Reorders a test suite by test type.
  
      `classes` is a sequence of types
  
 
</s> remove def partition_suite(suite, classes, bins):
 </s> add def partition_suite(suite, classes, bins, reverse=False): </s> remove         return reorder_suite(suite, self.reorder_by)
 </s> add         return reorder_suite(suite, self.reorder_by, self.reverse)
def reorder_suite(suite, classes, reverse=False):
          test_databases = deferred
      return ordered_test_databases
  
  
def reorder_suite(suite, classes, reverse=False):
      """
      Reorders a test suite by test type.
  
      `classes` is a sequence of types
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #23742 -- Added an option to reverse tests order.

This is useful for debugging side effects affecting tests that
are usually executed before a given test. Full suite and pair
tests sort cases more or less deterministically, thus some test
cross-dependencies are easier to reveal by reversing the order.

Thanks Preston Timmons for the review. 
django/test/runner.py