Skip to content

Commit

Permalink
Sorting wont use anything but ASC/DESC strings; Closes #914
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored and paveljanda committed Aug 31, 2020
1 parent 790b8fa commit d1c3b43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ protected function createSorting(array $sort, ?callable $sortCallback = null): S
foreach ($sort as $key => $order) {
unset($sort[$key]);

if ($order !== 'ASC' && $order !== 'DESC') {
continue;
}

try {
$column = $this->getColumn($key);

Expand Down

0 comments on commit d1c3b43

Please sign in to comment.