Skip to content

Commit 9976c1d

Browse files
ihorrudnixvmikhav
authored andcommitted
fix: fix in_array() order params
1 parent cc4d8e4 commit 9976c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function paginateDTO(PaginationRequestDTO $params): PaginationResultDTO
101101
} else {
102102
$column = $item;
103103
}
104-
if (in_array($this->model->fillable, $column, true)) {
104+
if (in_array($column, $this->model->fillable, true)) {
105105
$this->orderByRaw("$column $by NULLS LAST");
106106
}
107107
}

0 commit comments

Comments
 (0)