@datorama/core 22.7.0 → 22.7.1

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.
@@ -14471,9 +14471,10 @@
14471
14471
  if (!isNil(sortIndex)) {
14472
14472
  var gridColumns = this.api.columns.getAllGridColumns();
14473
14473
  if (gridColumns) {
14474
- var secondaryColumns = this.api.columns.getSecondaryColumns();
14475
- var secondaryColumn = secondaryColumns.find(function (col) { return col.getColId() === colId_1; });
14476
- if (secondaryColumn) {
14474
+ var valueColumns = this.api.columns.getValueColumns();
14475
+ var valueColumn = valueColumns.find(function (col) { return col.getColId() === colId_1; });
14476
+ var isPivotColId = colId_1.startsWith('pivot');
14477
+ if (isPivotColId || valueColumn) {
14477
14478
  /** Column is pivot value column, sort by index */
14478
14479
  var columnByIndex = gridColumns[sortIndex];
14479
14480
  if (columnByIndex) {
@@ -25435,7 +25436,7 @@
25435
25436
  };
25436
25437
  }
25437
25438
 
25438
- window.coreVersion = '22.7.0';
25439
+ window.coreVersion = '22.7.1';
25439
25440
 
25440
25441
  exports.APP_TRANSLATE = APP_TRANSLATE;
25441
25442
  exports.AceService = AceService;