Merge pull request #3685 from backstage/ryanv/product-entity-table-bugfix

fix entity breakdown sort
This commit is contained in:
Ryan Vazquez
2020-12-10 18:26:45 -05:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-cost-insights': patch
---
fix breakdown sorting
@@ -78,7 +78,7 @@ function createSorter(field?: keyof Omit<RowData, 'id'>) {
return field
? a[field] - b[field]
: b.previous + b.current - (a.previous - a.current);
: b.previous + b.current - (a.previous + a.current);
};
}