From cb6f0ff36c5facaa09dde0146f781816779f2d40 Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 27 Jun 2011 00:29:53 -0700 Subject: Issue #1191040 by sun: Use proper function for ordering tests by title. --- modules/simpletest/simpletest.pages.inc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'modules') diff --git a/modules/simpletest/simpletest.pages.inc b/modules/simpletest/simpletest.pages.inc index 31d0b2ce7..a39e8b792 100644 --- a/modules/simpletest/simpletest.pages.inc +++ b/modules/simpletest/simpletest.pages.inc @@ -128,7 +128,7 @@ function theme_simpletest_test_table($variables) { ); // Sorting $element by children's #title attribute instead of by class name. - uasort($element, '_simpletest_sort_by_title'); + uasort($element, 'element_sort_by_title'); // Cycle through each test within the current group. foreach (element_children($element) as $test_name) { @@ -177,18 +177,6 @@ function theme_simpletest_test_table($variables) { } } -/** - * Sort element by title instead of by class name. - */ -function _simpletest_sort_by_title($a, $b) { - // This is for parts of $element that are not an array. - if (!isset($a['#title']) || !isset($b['#title'])) { - return 1; - } - - return strcasecmp($a['#title'], $b['#title']); -} - /** * Run selected tests. */ -- cgit v1.2.3