How do I make a table sortable?
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.
What is a sortable table?
This script allows a table to be sorted by the column headers, in ascending or descending order.