]> git.mjollnir.org Git - moodle.git/commitdiff
Making the "Add block..." menu list alphabetically sorted ;-)
authordefacer <defacer>
Tue, 1 Feb 2005 07:59:09 +0000 (07:59 +0000)
committerdefacer <defacer>
Tue, 1 Feb 2005 07:59:09 +0000 (07:59 +0000)
lib/blocklib.php

index c825a01a6946cba8c015cee9a79d7e4f6fd2940c..98e3c9c26a5ed11c4b30198f9888966eb4d931ac 100644 (file)
@@ -263,7 +263,7 @@ function blocks_get_record($blockid = NULL, $invalidate = false) {
     static $cache = NULL;
 
     if($invalidate || empty($cache)) {
-        $cache = get_records('block');
+        $cache = get_records('block', '', '', 'name');
     }
 
     if($blockid === NULL) {