@theseam/ui-common 0.2.15 → 0.2.16

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.
@@ -2492,11 +2492,6 @@
2492
2492
  this._datatable = _datatable;
2493
2493
  this._columnsAlterationsManager = _columnsAlterationsManager;
2494
2494
  this._filterControl = new forms.FormControl();
2495
- this._alphabeticalColumnCompareFn = function (a, b) {
2496
- var aProp = getColumnProp(a);
2497
- var bProp = getColumnProp(b);
2498
- return aProp === bProp ? 0 : aProp > bProp ? 1 : -1;
2499
- };
2500
2495
  this._columns$ = rxjs.combineLatest([
2501
2496
  (_a = this._datatable.columns$) !== null && _a !== void 0 ? _a : rxjs.of([]),
2502
2497
  utils.observeControlValue(this._filterControl)
@@ -2504,8 +2499,7 @@
2504
2499
  var _c = __read(_b, 2), columns = _c[0], filter = _c[1];
2505
2500
  var _filter = (filter || '').trim().toLowerCase();
2506
2501
  return columns
2507
- .filter(function (c) { return _this._canToggleColumn(c, _filter); })
2508
- .sort(_this._alphabeticalColumnCompareFn);
2502
+ .filter(function (c) { return _this._canToggleColumn(c, _filter); });
2509
2503
  }));
2510
2504
  }
2511
2505
  DatatableColumnPreferencesComponent.prototype._canToggleColumn = function (column, filter, omitInternalColumns) {