class Minitest::Reporters::HtmlReporter

def compare_tests(test_a, test_b)

Tests which are skipped are given second highest priority
Tess which fail are given highest order
Tests are first ordered by evaluating the results of the tests, then by tests names
def compare_tests(test_a, test_b)
  return compare_tests_by_name(test_a, test_b) if test_fail_or_error?(test_a) && test_fail_or_error?(test_b)
  return -1 if test_fail_or_error?(test_a) && !test_fail_or_error?(test_b)
  return 1 if !test_fail_or_error?(test_a) && test_fail_or_error?(test_b)
  return compare_tests_by_name(test_a, test_b) if test_a.skipped? && test_b.skipped?
  return -1 if test_a.skipped? && !test_b.skipped?
  return 1 if !test_a.skipped? && test_b.skipped?
  compare_tests_by_name(test_a, test_b)
end