]> git.mjollnir.org Git - moodle.git/commitdiff
Use the locale to sort the list of activites everywhere. This matches a change a...
authortjhunt <tjhunt>
Mon, 7 Jan 2008 16:46:35 +0000 (16:46 +0000)
committertjhunt <tjhunt>
Mon, 7 Jan 2008 16:46:35 +0000 (16:46 +0000)
admin/modules.php
course/lib.php
help.php

index c550dfd33eef623ffda3b704be9007e07bac7b27..3b948a4768f8350b9203f0a4767932b78abf1f90 100644 (file)
         }
         $modulebyname[$strmodulename] = $module;
     }
-    ksort($modulebyname);
+    ksort($modulebyname, SORT_LOCALE_STRING);
 
 /// Print the table of all modules
     // construct the flexible table ready to display
index 250fb31577dd7a88439e9f96681a4905493a11ff..b269d912b5a2f54221235afc50b8a4dc0eb43408 100644 (file)
@@ -1259,7 +1259,7 @@ function get_all_mods($courseid, &$mods, &$modnames, &$modnamesplural, &$modname
             }
         }
         if ($modnamesused) {
-            asort($modnamesused);
+            asort($modnamesused, SORT_LOCALE_STRING);
         }
     }
 }
index 506090d4c5e3c7c03fbedf1aa9fb289598caee85..330c0c050fe27b814bf0c2b9585b7774621be5fd 100644 (file)
--- a/help.php
+++ b/help.php
@@ -149,7 +149,7 @@ function include_help_for_each_module($file, $langs, $helpdir) {
         $strmodulename = get_string('modulename', $mod->name);
         $modulebyname[$strmodulename] = $mod;
     }
-    ksort($modulebyname);
+    ksort($modulebyname, SORT_LOCALE_STRING);
 
     foreach ($modulebyname as $mod) {
         foreach ($langs as $lang) {