Skip to content

Commit

Permalink
Update Dataset.php
Browse files Browse the repository at this point in the history
  • Loading branch information
stepapo authored Jun 20, 2023
1 parent 47c33db commit 19a6be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UI/Dataset/Dataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ private function sort(ICollection $c): ICollection
$column = $this->columns[$sort];
$direction = $this->getComponent('sorting')->direction;
if ($column->sort->function) {
$c = $c->orderBy(array_merge([$column->sort->function->class], $column->sort->function->args), $direction);
$c = $c->orderBy(array_merge([$column->sort->function->class], (array) $column->sort->function->args), $direction);
} else {
$c = $c->orderBy($column->getNextrasName(), $direction);
}
Expand All @@ -505,7 +505,7 @@ private function sort(ICollection $c): ICollection
continue;
}
if ($column->sort->function) {
$c = $c->orderBy(array_merge([$column->sort->function->class], $column->sort->function->args), $column->sort->direction);
$c = $c->orderBy(array_merge([$column->sort->function->class], (array) $column->sort->function->args), $column->sort->direction);
} else {
$c = $c->orderBy($column->getNextrasName(), $column->sort->direction);
}
Expand Down

0 comments on commit 19a6be2

Please sign in to comment.