@annalib/anna-core 14.6.20 → 14.6.21

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.
@@ -1476,8 +1476,24 @@ class AnnaFilterService {
1476
1476
  }
1477
1477
  this.appliedFiltersArray = [...set];
1478
1478
  }
1479
- filterData(originalData, keyToSkip) {
1479
+ checkIfSortingIsAppliedThenSortTheData(originalData) {
1480
+ if (!this.annaSortService?.columnSortState)
1481
+ return originalData;
1482
+ for (let [key, value] of this.annaSortService.columnSortState.entries()) {
1483
+ if (value == "ASC") {
1484
+ originalData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(true, originalData, key));
1485
+ }
1486
+ else if (value == "DESC") {
1487
+ originalData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(false, originalData, key));
1488
+ }
1489
+ }
1490
+ return originalData;
1491
+ }
1492
+ filterData(originalData, keyToSkip, isLurCsrPage = false) {
1480
1493
  let filteredData = [...originalData];
1494
+ if (!isLurCsrPage) {
1495
+ filteredData = this.checkIfSortingIsAppliedThenSortTheData(originalData);
1496
+ }
1481
1497
  this.tooltipSelectedMap.forEach((value, key) => {
1482
1498
  if (key != keyToSkip) {
1483
1499
  if (this.sliderSet.has(key)) {