This is a simple table to which a data-controller="tablesort" was added and nothing else was done. This one, however, doesn't even have a thead or tbody.
In order to get that to work, 'data-tablesort-auto-head="true"' must be added to the table.
The CSS file handles the stylnig, including the sort indicators, which use the standard "aria-sort" attribute.
| Row | Thing | Dates |
|---|---|---|
| 1 | Shoe | 9/11/2001 |
| 2 | Twine | 12/7/1941 |
| 3 | Thread | 1/20/2008 |
| 4 | Rope | 9/17/1862 |
| 5 | Yarn | 8/6/1945 |
| 6 | Nylon | 7/4/1776 |
| 7 | (Rainbow) | 8/4/1989 |
| 8 | Cord | 1/4/1698 |