How to Make Sortable Tables. Adding the “sortable” class to a <table> element provides support for sorting by column value. Clicking the column headers will sort the table rows by that column's value. Tables must use <thead> and <th> tags for sortable functionality to work.
How do you make an Excel table sortable?
How to Create a Sortable Column in an Excel Workbook
- Open an Excel workbook or create a new one.
- Highlight the column you wish to sort.
- Click the Filter icon under the Sort & Filter heading. ...
- Click the arrow to sort the data how you'd like -- smallest to largest, or vice versa -- and press OK.
What is a sortable table?
This script allows a table to be sorted by the column headers, in ascending or descending order.