Vanilla framework documentation

Table sortable

Using the class p-table--sortable and assigning role="columnheader" and aria-sort to each <th> element will show each table column to be sortable. With javascript toggling between ascending and descending for the aria-sort attribute it will change the chevron icon in that direction.

View example of the table sortable pattern