p-table reorder columns event code example
Example: primeng table reorder columns
<p-dataTable [value]="browsers" reorderableColumns="true"> <p-column field="engine" header="Engine"></p-column> <p-column field="browser" header="Browser"></p-column> <p-column field="platform" header="Platform"></p-column> <p-column field="grade" header="Grade"></p-column></p-dataTable>