My mat-table is working all fine, but MatSort only works if it\'s called twice. Here\'s my code to get the data from API and assign to the dataSource
MatSort
dataSource