Skip to content
Snippets Groups Projects

Update 2 files

Merged Daniel Cothran requested to merge issue/views_csv_source-3479470:3479470- into 1.0.x
Files
3
+ 1
1
@@ -512,7 +512,7 @@ class Select {
if ($order_by = $this->getObjectItem('order_by')) {
foreach ($order_by as $sort) {
$stmt = $stmt->orderBy(function (array $a, array $b) use ($sort): int {
$direction = $sort->direction;
$direction = strtoupper($sort->direction);
return match ($direction) {
self::DIRECTION_ASC => strnatcasecmp($a[$sort->column] ?? '', $b[$sort->column] ?? ''),
self::DIRECTION_DESC => -strnatcasecmp($a[$sort->column] ?? '', $b[$sort->column] ?? ''),
Loading