@sumaris-net/ngx-components 2.4.90 → 2.4.91
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/esm2020/src/app/shared/functions.mjs +4 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +3 -1
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +3 -1
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +1 -1
|
@@ -375,7 +375,9 @@ function sort(array, attribute, opts) {
|
|
|
375
375
|
: (v1, v2) => v1 === v2 ? 0 : v1 > v2 ? 1 : -1;
|
|
376
376
|
return array
|
|
377
377
|
.slice() // copy
|
|
378
|
-
.sort(
|
|
378
|
+
.sort(attribute
|
|
379
|
+
? (a, b) => compareFn(a[attribute], b[attribute])
|
|
380
|
+
: compareFn);
|
|
379
381
|
}
|
|
380
382
|
const INTEGER_REGEXP = /^[-]?\d+$/;
|
|
381
383
|
function isInt(value) {
|