How to develop sortable column by click on the header?
I am trying to do like in the documentation, but it does not work.
<ngx-datatable
#table
...
[rows]='vendors'>
<ngx-datatable-column name="VENDOR" [flexGrow]="1">
<ng-template let-column="column" let-sort="sortFn" let-sortDir="sortDir">
<span (click)="sort($event, sortDir, sortFn)">{{column.name}}</span>
</ng-template>
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
<div class="vendor-name">{{row.vendorName}}</div>
</ng-template>
</ngx-datatable-column>