Skip to content

Commit

Permalink
Merge pull request #86 from dercodercom/patch-3
Browse files Browse the repository at this point in the history
fix orderBy string numbers
  • Loading branch information
luanfreitasdev authored Nov 2, 2021
2 parents 17fe286 + 6e40fd9 commit 66b0346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PowerGridComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function fillData()
->setFilters($this->filters)
->filterContains()
->filter();
})->orderBy($this->sortField, $this->sortDirection);
})->orderByRaw("$this->sortField+0 $this->sortDirection")->orderBy($this->sortField, $this->sortDirection);

if ($this->perPage > 0) {
$results = $results->paginate($this->perPage);
Expand Down

0 comments on commit 66b0346

Please sign in to comment.