We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a239bf + f352dd6 commit 6267084Copy full SHA for 6267084
src/CollectionDataTable.php
@@ -295,9 +295,9 @@ protected function getSorter(array $criteria)
295
$second = $b;
296
}
297
if ($this->config->isCaseInsensitive()) {
298
- $cmp = strnatcasecmp($first[$column], $second[$column]);
+ $cmp = strnatcasecmp($first[$column] ?? null, $second[$column] ?? null);
299
} else {
300
- $cmp = strnatcmp($first[$column], $second[$column]);
+ $cmp = strnatcmp($first[$column] ?? null, $second[$column] ?? null);
301
302
if ($cmp != 0) {
303
return $cmp;
0 commit comments