@alfresco/adf-core 8.4.0-19740388386 → 8.4.0-19758325202

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.
@@ -16780,7 +16780,7 @@ class DataTableComponent {
16780
16780
  if (this.isValidClickEvent(event) && column && column.sortable) {
16781
16781
  const current = this.data.getSorting();
16782
16782
  let newDirection = 'asc';
16783
- if (current && column.key === current.key) {
16783
+ if ((column.sortingKey || column.key) === current?.key) {
16784
16784
  newDirection = current.direction?.toLowerCase() === 'asc' ? 'desc' : 'asc';
16785
16785
  }
16786
16786
  this.sorting = [column.key, newDirection, { numeric: true }];