I have a table using mat-sort with a custom sortingDataAccessor to be able to sort on some nested data within the element (unsure if relevant). This works fine, the data is sorted, the problem occurs when the data is updated asynchronously, because now the data is no longer in order, since it's changed and the table hasn't updated it's order.
So how can I trigger the sort programatically? Or rather, how can I keep the table sorted at all times even if the dataSource.data
gets updated?
Stackblitz to showcase problem: https://stackblitz.com/edit/angular-qoytbq
Thanks!