Skip to content

Commit

Permalink
Merge branch 'DDKaka-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyslik committed Sep 4, 2018
2 parents a235a7a + 58c6f02 commit 2396228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ColumnSortable/Sortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function parseSortParameters(array $sortParameters)
}

$direction = array_get($sortParameters, 'order', []);
if ( ! in_array($direction, ['asc', 'desc'])) {
if ( ! in_array(strtolower($direction), ['asc', 'desc'])) {
$direction = Config::get('columnsortable.default_direction', 'asc');
}

Expand Down

0 comments on commit 2396228

Please sign in to comment.