Skip to content

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CollectionDataTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ protected function getSorter(array $criteria): Closure
317317
$cmp = 0;
318318
}
319319
} elseif ($this->config->isCaseInsensitive()) {
320-
$cmp = strnatcasecmp($first[$column] ?? null, $second[$column] ?? null);
320+
$cmp = strnatcasecmp($first[$column] ?? '', $second[$column] ?? '');
321321
} else {
322-
$cmp = strnatcmp($first[$column] ?? null, $second[$column] ?? null);
322+
$cmp = strnatcmp($first[$column] ?? '', $second[$column] ?? '');
323323
}
324324
if ($cmp != 0) {
325325
return $cmp;

0 commit comments

Comments
 (0)