Fixed #23742 -- Added an option to reverse tests order.

Please see [#23742](https://code.djangoproject.com/ticket/23742).
Sure, just split the changes into two commits. At least the default-settings-suite seems to pass with both Python 2 and 3, so now I wonder what I've broken with this cleanup ;-)