          bins[0].addTests(bins[i + 1])
      return bins[0]
  
  
  def partition_suite(suite, classes, bins):
      """
      Partitions a test suite by test type. Also prevents duplicated tests.
  
      classes is a sequence of types
      bins is a sequence of TestSuites, one more than classes
 
</s> remove def reorder_suite(suite, classes):
 </s> add def reorder_suite(suite, classes, reverse=False): </s> remove     partition_suite(suite, classes, bins)
 </s> add     partition_suite(suite, classes, bins, reverse=reverse)
def partition_suite(suite, classes, bins, reverse=False):
          bins[0].addTests(bins[i + 1])
      return bins[0]
  
  
def partition_suite(suite, classes, bins, reverse=False):
      """
      Partitions a test suite by test type. Also prevents duplicated tests.
  
      classes is a sequence of types
      bins is a sequence of TestSuites, one more than classes
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