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 8750721 commit ee300c7
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 @@ -852,6 +852,10 @@ protected function createSorting(array $sort, callable $sort_callback = null)
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 ee300c7

Please sign in to comment.