@tanstack/svelte-table 8.5.26 → 8.5.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3151,11 +3151,11 @@ function getSortedRowModel() {
3151
3151
 
3152
3152
  // If there are sub-rows, sort them
3153
3153
  sortedData.forEach(row => {
3154
+ var _row$subRows;
3154
3155
  sortedFlatRows.push(row);
3155
- if (!row.subRows || row.subRows.length <= 1) {
3156
- return;
3156
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
3157
+ row.subRows = sortData(row.subRows);
3157
3158
  }
3158
- row.subRows = sortData(row.subRows);
3159
3159
  });
3160
3160
  return sortedData;
3161
3161
  };