@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.
@@ -2613,9 +2613,11 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2613
2613
  _loop_2(r);
2614
2614
  }
2615
2615
  var localIdMapping = _this.parent.idMapping;
2616
- datas.sort(function (firstRecord, secondRecord) {
2617
- return firstRecord["" + localIdMapping] - secondRecord["" + localIdMapping];
2618
- });
2616
+ if (_this.parent.enableVirtualization && _this.parent.loadChildOnDemand) {
2617
+ datas.sort(function (firstRecord, secondRecord) {
2618
+ return firstRecord["" + localIdMapping] - secondRecord["" + localIdMapping];
2619
+ });
2620
+ }
2619
2621
  setValue('result', datas, e);
2620
2622
  setValue('action', 'beforecontentrender', e);
2621
2623
  _this.parent.trigger(actionComplete, e);