@sumaris-net/ngx-components 1.23.20 → 1.23.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.
@@ -21237,7 +21237,8 @@
21237
21237
  };
21238
21238
  InMemoryEntitiesService.prototype.sort = function (data, sortBy, sortDirection) {
21239
21239
  // Replace sortBy, using the replacement map
21240
- sortBy = sortBy && this._sortByReplacement[sortBy] || sortBy || 'id';
21240
+ sortBy = sortBy || 'id';
21241
+ sortBy = this._sortByReplacement[sortBy] || sortBy;
21241
21242
  // Execute the sort
21242
21243
  return EntityUtils.sort(data, sortBy, sortDirection);
21243
21244
  };