If a TWiki table has an empty header cell, or a header cell that is not "header style" (user forgot the
asterisks, table sorting is disabled.
Sortable:
| *A* | *B* | *C * | *D* |
| apple | banana | Cherry | date |
| aardvark | beetle | cat | dog |
| ample | barely | classic | deep |
Not sortable:
| *A* | *B* | *C * | D |
| apple | banana | Cherry | date |
| aardvark | beetle | cat | dog |
| ample | barely | classic | deep |
| *A* | *B* | *C * | |
| apple | banana | Cherry | |
| aardvark | beetle | cat | |
| ample | barely | classic | |
The second "not sortable" example above occurred when a co-worker created a Table with one too many EDITTABLE formats defined. He was most surprised that adding a row using
EditTable turned off sorting.
--
TWiki:Main/VickiBrown
- 19 May 2010
This is actually spec of the
TablePlugin, all top row cells need to be header cells in order to get a sorted table.
--
TWiki:Main.PeterThoeny
- 19 May 2010