BUGFIX DataQuery::orderby() don't sort relations DESC

This commit is contained in:
Stig Lindqvist 2011-12-18 04:21:00 +01:00
parent fece61c90b
commit 20554b1bf9

View File

@ -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);