I have a normal Angular Material 2 DataTable with sort headers. All sort are headers work fine. Except for the one with an object as value. These doesn\'t sort at all.
Another alternative, that no one threw out here, flatten the column first...
yourData.map((d) => d.flattenedName = d.project && d.project.name ? d.project.name : 'Not Specified'); this.dataSource = new MatTableDataSource(yourData);
Just another alternative, pros and cons for each!