@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.
- package/bundles/sumaris-net.ngx-components.umd.js +2 -1
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +3 -2
- package/fesm2015/sumaris-net.ngx-components.js +2 -1
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
};
|