I have a table where my headers are in the first column. I search a method to sort my table by this column. I know datatable and tablesorter, but I don't find any solution with it to sort my table like this.
To be clear, here is an example of my table :
Name | John | Jane | Toto
Value| 1256 | 125 | 8563
Val2 | 12 | 45 | 3
(Here a beginning of code on JSFiddle : https://jsfiddle.net/nLwo8bya/1/)
And I want to click on a cell in the first column to sort other column by this row.
If I click on the name, the previous table will be :
Name | Jane | John | Toto
Value| 125 | 1256 | 8563
Val2 | 45 | 12 | 3
The column of table are now sort by name (the first row in this case).
Thanks in advance for your help
Edit : Like nnnnnn says, I want to sort columns, by the first one