diff --git a/src/app/item-detail/item-detail.component.ts b/src/app/item-detail/item-detail.component.ts index 6f2c5384..e499937b 100644 --- a/src/app/item-detail/item-detail.component.ts +++ b/src/app/item-detail/item-detail.component.ts @@ -272,10 +272,8 @@ export class ItemDetailComponent implements OnInit { }); }); - const variabilitySorted = output.sort((a, b) => b.variablity - a.variablity); - const onePercSorted = output.sort((a, b) => b.onePerc - a.onePerc); - - + const variabilitySorted = [...output].sort((a, b) => b.variability - a.variability); + const onePercSorted = [...output].sort((a, b) => b.onePerc - a.onePerc); this.perfAnalysis = { variability: {