@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.
@@ -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((a, b) => compareFn(a[attribute], b[attribute]));
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) {