@syncfusion/ej2-treegrid 31.1.21 → 31.1.22

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.
@@ -2441,9 +2441,11 @@ class DataManipulation {
2441
2441
  }
2442
2442
  }
2443
2443
  const localIdMapping = this.parent.idMapping;
2444
- datas.sort(function (firstRecord, secondRecord) {
2445
- return firstRecord[`${localIdMapping}`] - secondRecord[`${localIdMapping}`];
2446
- });
2444
+ if (this.parent.enableVirtualization && this.parent.loadChildOnDemand) {
2445
+ datas.sort(function (firstRecord, secondRecord) {
2446
+ return firstRecord[`${localIdMapping}`] - secondRecord[`${localIdMapping}`];
2447
+ });
2448
+ }
2447
2449
  setValue('result', datas, e);
2448
2450
  setValue('action', 'beforecontentrender', e);
2449
2451
  this.parent.trigger(actionComplete, e);