      test_loader = defaultTestLoader
      reorder_by = (TestCase, SimpleTestCase)
  
      def __init__(self, pattern=None, top_level=None,
                   verbosity=1, interactive=True, failfast=False, keepdb=False,
                   **kwargs):
  
          self.pattern = pattern
          self.top_level = top_level
  
 
</s> remove .. class:: DiscoverRunner(pattern='test*.py', top_level=None, verbosity=1, interactive=True, failfast=True, keepdb=False **kwargs)
 </s> add .. class:: DiscoverRunner(pattern='test*.py', top_level=None, verbosity=1, interactive=True, failfast=True, keepdb=False, reverse=False, **kwargs) </s> remove         return reorder_suite(suite, self.reorder_by)
 </s> add         return reorder_suite(suite, self.reorder_by, self.reverse) </s> remove             help='Preserve the test DB between runs. Defaults to False')
 </s> add             help='Preserves the test DB between runs.')
        parser.add_argument('-r', '--reverse', action='store_true', dest='reverse',
            default=False,
            help='Reverses test cases order.') </s> remove def django_tests(verbosity, interactive, failfast, keepdb, test_labels):
 </s> add def django_tests(verbosity, interactive, failfast, keepdb, reverse, test_labels):
                 verbosity=1, interactive=True, failfast=False, keepdb=False, reverse=False,
      test_loader = defaultTestLoader
      reorder_by = (TestCase, SimpleTestCase)
  
      def __init__(self, pattern=None, top_level=None,
                 verbosity=1, interactive=True, failfast=False, keepdb=False, reverse=False,
                   **kwargs):
  
          self.pattern = pattern
          self.top_level = top_level
  
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