Angular material sorting near drag & drop
问题 I successful implemented sorting and drag & drop, but there fun begins. I need both of them in one list. At this moment it working like ... i can sort (it's ok), i can drag (it's ok) but i can't drop, every time it going back to first position. <table cdkDropList matSort (cdkDropListDropped)="drop($event)" (matSortChange)="sortData($event)"> <tr> <th mat-sort-header="name">Name</th> </tr> <tr *ngFor="let element of sortedData" cdkDrag> <td>{{element.name}}</td> </tr> </table> This is a part