diff --git a/src/ColumnSortable/Sortable.php b/src/ColumnSortable/Sortable.php index 39df209..cd7b8a5 100755 --- a/src/ColumnSortable/Sortable.php +++ b/src/ColumnSortable/Sortable.php @@ -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'); }