@annalib/anna-core 5.0.9 → 5.0.11

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.
@@ -405,9 +405,10 @@ class AnnaDateTimeFormatService {
405
405
  }
406
406
  compare(a, b, isAsc) {
407
407
  if (typeof a == 'string' && typeof b == 'string') {
408
- a = a.toLowerCase();
409
- b = b.toLowerCase();
408
+ a = a == "-" ? "0" : a.toLowerCase();
409
+ b = b == "-" ? "0" : b.toLowerCase();
410
410
  }
411
+ console.log(a, b, (a < b ? -1 : 1) * (isAsc ? 1 : -1));
411
412
  return (a < b ? -1 : 1) * (isAsc ? 1 : -1);
412
413
  }
413
414
  sortDataByBroadcastTimeAsc(firstParamTime, secondParamTime, broadcastTime) {
@@ -2526,7 +2527,7 @@ class AnnaNonEditableGenericTableComponent {
2526
2527
  // this.emitData();
2527
2528
  this.setInitialRowsForTable();
2528
2529
  this.disableEnableEachColumnTooltipIcon();
2529
- this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
2530
+ this.annaFilterService.updateStateOfAllTheKeys(this.annaSortService.columnSortState);
2530
2531
  this.emitData();
2531
2532
  this.closeTooltip();
2532
2533
  }