@unifylib/ui-lib 1.1.57 → 1.1.58

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.
@@ -3348,9 +3348,11 @@ class BaseTableComponent extends BaseUtils {
3348
3348
  return !groupByValues.some(v => value.includes(v) && value.length >= v.length);
3349
3349
  }
3350
3350
  onSortAction($event) {
3351
- this.reportRequest.filterRequest.sortKey = $event.active && $event.direction ?
3352
- this.columns.find(c => c.property === $event.active)?.orderByProperty || $event.active
3353
- : 'id';
3351
+ const col = this.columns.find(c => c.property === $event.active);
3352
+ this.reportRequest.filterRequest.sortKey =
3353
+ $event.active && $event.direction
3354
+ ? (col?.sortKey ?? $event.active)
3355
+ : 'id';
3354
3356
  this.reportRequest.filterRequest.sortDirection = $event.direction === 'asc' ? 'ASC' : 'DESC';
3355
3357
  this.reportRequest.filterRequest.pageIndex = 0;
3356
3358
  this.selectedColumn.emit($event);