mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX DataQuery::orderby() don't sort relations DESC
This commit is contained in:
parent
fece61c90b
commit
20554b1bf9
@ -181,13 +181,13 @@ class DataQuery {
|
||||
|
||||
$columnParts = explode(' ', $col);
|
||||
if (count($columnParts) == 2) {
|
||||
$dir = $columnParts[1];
|
||||
$col = $columnParts[0];
|
||||
$dir = $columnParts[1];
|
||||
} else {
|
||||
$dir = '';
|
||||
$dir = 'ASC';
|
||||
}
|
||||
|
||||
$orderByFields[$ob] = $col;
|
||||
$orderByFields[$ob] = $col . ' ' . $dir;
|
||||
$col = str_replace('"', '', $col);
|
||||
$parts = explode('.', $col);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user