mirror of
https://github.com/moodle/moodle.git
synced 2025-07-26 00:31:35 +02:00
MDL-75170 tablelib: Use sql_order_by_null to sort columns
This commit is contained in:
@@ -601,9 +601,9 @@ class flexible_table {
|
|||||||
$column = $DB->sql_order_by_text($column);
|
$column = $DB->sql_order_by_text($column);
|
||||||
}
|
}
|
||||||
if ($order == SORT_ASC) {
|
if ($order == SORT_ASC) {
|
||||||
$bits[] = $column . ' ASC';
|
$bits[] = $DB->sql_order_by_null($column);
|
||||||
} else {
|
} else {
|
||||||
$bits[] = $column . ' DESC';
|
$bits[] = $DB->sql_order_by_null($column, SORT_DESC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user