class Minitest::Reporters::HtmlReporter

def compare_suites(suite_a, suite_b)

Tests suites which have skipped tests are given second highest priority
Test suites which have failing tests are given highest order
Test suites are first ordered by evaluating the results of the tests, then by test suite name
def compare_suites(suite_a, suite_b)
  return compare_suites_by_name(suite_a, suite_b) if suite_a[:has_errors_or_failures] && suite_b[:has_errors_or_failures]
  return -1 if suite_a[:has_errors_or_failures] && !suite_b[:has_errors_or_failures]
  return 1 if !suite_a[:has_errors_or_failures] && suite_b[:has_errors_or_failures]
  return compare_suites_by_name(suite_a, suite_b) if suite_a[:has_skipps] && suite_b[:has_skipps]
  return -1 if suite_a[:has_skipps] && !suite_b[:has_skipps]
  return 1 if !suite_a[:has_skipps] && suite_b[:has_skipps]
  compare_suites_by_name(suite_a, suite_b)
end