mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-75170 tablelib: Use sql_order_by_null to sort columns
This commit is contained in:
parent
70dfee9e23
commit
fee755bbfa
@ -601,9 +601,9 @@ class flexible_table {
|
||||
$column = $DB->sql_order_by_text($column);
|
||||
}
|
||||
if ($order == SORT_ASC) {
|
||||
$bits[] = $column . ' ASC';
|
||||
$bits[] = $DB->sql_order_by_null($column);
|
||||
} else {
|
||||
$bits[] = $column . ' DESC';
|
||||
$bits[] = $DB->sql_order_by_null($column, SORT_DESC);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user