Merge pull request #3685 from backstage/ryanv/product-entity-table-bugfix
fix entity breakdown sort
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user