Merge branch 'MDL-39068_23' of git://github.com/stronk7/moodle into MOODLE_23_STABLE

This commit is contained in:
Damyon Wiese
2013-04-15 14:24:26 +08:00
+3
View File
@@ -99,6 +99,9 @@ $table->data = array();
if ($sort == 'firstname' or $sort == 'lastname') {
$orderby = "u.$sort $dir";
} else if ($sort == 'value' or $sort == 'oldvalue') {
// cross-db text-compatible sorting.
$orderby = $DB->sql_order_by_text("cl.$sort", 255) . ' ' . $dir;
} else {
$orderby = "cl.$sort $dir";
}