Skip to content

Commit 3429808

Browse files
committed
Add support for ordering using compound key
1 parent ad95651 commit 3429808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yajra/Datatables/Engines/CollectionEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function ordering()
9999
function ($row) use ($column) {
100100
$row = Helper::castToArray($row);
101101

102-
return $row[$column];
102+
return Arr::get($row, $column);
103103
}
104104
);
105105

0 commit comments

Comments
 (0)