? addperiod.patch
? sortbytitle.patch
? sortbytitle2.patch
? sortbytitle3.patch
? modules/filter/filter.mod
? sites/default/files
? sites/default/settings.php
Index: modules/simpletest/simpletest.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.pages.inc,v
retrieving revision 1.4
diff -u -p -r1.4 simpletest.pages.inc
--- modules/simpletest/simpletest.pages.inc	8 Jun 2009 09:23:53 -0000	1.4
+++ modules/simpletest/simpletest.pages.inc	20 Jun 2009 05:36:04 -0000
@@ -121,6 +121,9 @@ function theme_simpletest_test_table($ta
       'clickActive' => FALSE,
     );
 
+    // Sorting $element by children's #title attribute instead of by class name.
+    uasort($element, '_simpletest_sort_by_title');
+
     // Cycle through each test within the current group.
     foreach (element_children($element) as $test_name) {
       $test = $element[$test_name];
@@ -160,6 +163,18 @@ function theme_simpletest_test_table($ta
 }
 
 /**
+ * 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.
  */
 function simpletest_test_form_submit($form, &$form_state) {
