@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.
@@ -14272,9 +14272,10 @@ var GridService = /** @class */ (function () {
14272
14272
  if (!isNil(sortIndex)) {
14273
14273
  var gridColumns = this.api.columns.getAllGridColumns();
14274
14274
  if (gridColumns) {
14275
- var secondaryColumns = this.api.columns.getSecondaryColumns();
14276
- var secondaryColumn = secondaryColumns.find(function (col) { return col.getColId() === colId_1; });
14277
- if (secondaryColumn) {
14275
+ var valueColumns = this.api.columns.getValueColumns();
14276
+ var valueColumn = valueColumns.find(function (col) { return col.getColId() === colId_1; });
14277
+ var isPivotColId = colId_1.startsWith('pivot');
14278
+ if (isPivotColId || valueColumn) {
14278
14279
  /** Column is pivot value column, sort by index */
14279
14280
  var columnByIndex = gridColumns[sortIndex];
14280
14281
  if (columnByIndex) {
@@ -25236,7 +25237,7 @@ function fixNgLeaks() {
25236
25237
  };
25237
25238
  }
25238
25239
 
25239
- window.coreVersion = '22.7.0';
25240
+ window.coreVersion = '22.7.1';
25240
25241
 
25241
25242
  /**
25242
25243
  * @license