ps-toolkit-ui 1.5.15 → 1.5.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.
@@ -2556,10 +2556,11 @@
2556
2556
  };
2557
2557
  TableRowComponent.prototype.loadChildren = function (p) {
2558
2558
  var _this = this;
2559
- var data = {};
2560
- if (this.table.sortable) {
2561
- data = { Page: 1, PerPage: -1, Sort: 'Priority', SortType: 'ASC' };
2562
- }
2559
+ var data = {
2560
+ Page: 1, PerPage: -1,
2561
+ Sort: this.table.sortable ? 'Priority' : 'ID',
2562
+ SortType: this.table.sortable ? 'Asc' : 'DESC'
2563
+ };
2563
2564
  new RequestClass(this.table.environment, this.table.l).send(this.table.url + ("/" + p), exports.Method.Post, data, this.showChildren, function (result) {
2564
2565
  _this.children = result.List;
2565
2566
  setTimeout(function () {