MDL-18244 sql_length() - apply new function to resource names filter

This commit is contained in:
stronk7
2009-02-15 23:20:36 +00:00
parent 047158d694
commit 4c7971bb08
+1 -1
View File
@@ -46,7 +46,7 @@
cm.visible = 1 AND
r.id = cm.instance AND
cm.course = {$courseid}
ORDER BY CHAR_LENGTH(r.name) DESC, cm.section ASC;";
ORDER BY " . sql_length('r.name') . " DESC, cm.section ASC;";
if (!$resources = get_records_sql($resource_sql) ){
$nothingtodo = true;