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 f7c69c4 + 373cbed commit 1a88a19Copy full SHA for 1a88a19
src/CollectionDataTable.php
@@ -317,9 +317,9 @@ protected function getSorter(array $criteria): Closure
317
$cmp = 0;
318
}
319
} elseif ($this->config->isCaseInsensitive()) {
320
- $cmp = strnatcasecmp($first[$column] ?? null, $second[$column] ?? null);
+ $cmp = strnatcasecmp($first[$column] ?? '', $second[$column] ?? '');
321
} else {
322
- $cmp = strnatcmp($first[$column] ?? null, $second[$column] ?? null);
+ $cmp = strnatcmp($first[$column] ?? '', $second[$column] ?? '');
323
324
if ($cmp != 0) {
325
return $cmp;
0 commit comments