SimpleQuery: Fail in case of missing order columns

refs #3414
This commit is contained in:
Johannes Meyer 2019-04-16 12:01:49 +02:00
parent e22d7daab6
commit 032ca7ae50
1 changed files with 1 additions and 3 deletions

View File

@ -369,9 +369,7 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
$column = $this->flippedColumns[$column];
}
// TODO: throw Exception if column is missing
//$res = strnatcmp(strtolower($a->$column), strtolower($b->$column));
$result = @strcmp(strtolower($a->$column), strtolower($b->$column));
$result = strcmp(strtolower($a->$column), strtolower($b->$column));
if ($result === 0) {
return $this->compare($a, $b, ++$orderIndex);
}