I'd like to offer my visitors the possibility to sort the cells in the tables in an HTML page generated from RST with python-sphinx. Let's suppose I have a table like this:
.. list-table:: A fancy name table
:header-rows: 1
* - Family name
- Given name
* - Smith
- Samuel
* - Johnson
- John
This renders well and shows the name in the order of the input. Now I'd like to generate an HTML output and offer the user the possibility to reorder the names into alphabetical order. There are standalone examples and libraries to implement this, and I'd like to know which solution has already implemented into Sphinx if any. The best would be to include a minimal extension and modify a property of all the tables (or just the one I'd like to be able to sort) to include this feature.
Could you please advise an extension and best practice how to do it? I'd prefer to make the least possible CSS and JS code/file manipulation myself.