Skip to content

Commit

Permalink
sort fix for performance analysis (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Mar 9, 2021
1 parent 3fb4eb2 commit ab1be40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/item-detail/item-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ab1be40

Please sign in to comment.