For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
Ok now makes sense to me and maybe I found a "fast and dirty" solution to my joined case scenarioExactly, and joined or not shouldn't matter.
$new_rows = $this->rows;
if($this->isGrouped) {
$rows = $this->rows;
function cmp($a,$b) {
if(count($a) == count($b)) return 0;
return count($a) < count($b)?1:-1;
}
$keys = array_keys($rows);
usort($rows, "cmp");
$new_rows = [];
foreach ($rows as $index => $r) {
$new_rows[$r[0]->data->_groupId] = $r;
}
}
foreach ($new_rows as $groupedBy => $group) :