How can I change Angular Material code below, so that data-table is sorted by \'name\' column, ascending order by default. Arrow (indicating current sort direction) must be
Maybe have you tried to call on the init of the page the sort function forced on name and direction?
ngOnInit() { let defSort: Sort = {}; defSort.direction = 'asc'; defSort.active = 'name'; this.sortData(defSort); }