@xiriframework/xiri-ng 0.4.1 → 0.4.2

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.
@@ -5176,6 +5176,10 @@ class XiriTableComponent {
5176
5176
  const column = this.displayedColumns.find(col => col.id === sortHeaderId);
5177
5177
  if (column && column.format === 'number')
5178
5178
  return data[sortHeaderId][1];
5179
+ // ponytail: sort by the first chip's label — without this MatTable compares the raw object
5180
+ // array, which coerces to "[object Object],..." and effectively sorts by chip count.
5181
+ if (column && column.format === 'chips')
5182
+ return data[sortHeaderId]?.[0]?.label ?? '';
5179
5183
  return data[sortHeaderId];
5180
5184
  };
5181
5185
  }