I have an Angular project, where I use mat table. I use mat-sort-header as well. The problem is, the last row is the sum row if sumNeeded input is true (so sum is needed). How to exclude the last row? So the sum row always be the last row. Continue reading...