Found the solution by implementing the changes at the following link
Therefore, made the adjustment from:
matColumnDef="name"
to:
matColumnDef="input.name"
Also, added the following entry in the code:
public displayedLoadingPointColumns: string[] = ['input.name', ...
Inserted this method into the .ts file:
sortColumn($event: Sort): void {
this.dataSource.sortingDataAccessor = (item, property) => {
switch (property) {
case 'input.name': {
return item.input.name;
}
default: {
return item[property]; }
}
};
}
In the HTML file, the implementation is as follows:
<table mat-table [dataSource]="this.dataSource" matSort (matSortChange)="sortColumn($event)">
<ng-container matColumnDef="input.name">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Title</th>
<td mat-cell *matCellDef="let whatevet"> {{whatever.input.name}}</td>
</ng-container>
...