• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Test case.

Create two tables.

Number ColourSorted ascending
3 green
2 red
4 white
1 yellow

Number ColourSorted ascending
6 black
3 green
5 red
9 white

And note above then even though both have initsort="2" only the first it sorted.

I ran into this problem when I made a TWiki application where I need several tables in the same topic to be sorted. I noticed someone else has reported this on the TWiki:Plugins.TablePluginDev topic.

I know it can be hard to make more than one table sort when you click on a header because the current URL syntax does not refer to multiple tables.

But the initsort option should be able to work so that must be a bug.


This is a known problem, and not easily solved. TablePlugin code assumes there is only one table, and initsort is linked with the "one table" problem.


I sure hope someone will pick it up because this is a major problem.

We are repeatedly running into this problem. Especially when we merge several topic into presentations.


I have a fix for this one.

I want to test a few more days before I check it in. Just want to signal that I am working on it to avoid double work.

My fix addressed the problem that sorting defined with initsort only works on first table. This is a major limitation and bug that many have reported in the TWiki:Plugins.TablePluginDev topic.

I do not intend to implement a feature that allows sorting more than one table by clicking the header. Defining the spec for that and agreeing on it is not an abvious thing and that would be an enhancement.

But the initsort fix is straight forward. A table is initsorted UNLESS it is sorted by clicking on a column header. If you click on a header of another table the first table goes back to the default sort defined by initsort or not sorted if no initsort. And the new table is sorted as the users wish by clicking the header. That spec is pretty obvious and clear.

Changing to Actioning in the meening "Taken".


Should be fixed now. Have run the manual test cases from test cases web and found additional bug which was also fixed.

Will not release the plugin to t.o yet because I need to verify with Arthur if the up and down arrow icons are intentionally swapped from what they were in 4.0.5 and all ealier versions


Arrows gone - working on it


Arrows back


Studied the way arrows and sorting works in other programs and it works like Arthur has recently implemented it. So TWiki should follow same industry standard.

This means I have no further actions other than releasing the plugin.


Yes, it is user interface default to show the sorted state.

I don't see anything wrong on the testcase page, so it can be released. When 4.1 goes out of the door we need to put the new TablePlugin in plugins web.


The testcase page is a great tool. I found many problems with that that caused a couple of extra checkins.

I have released the plugin on Plugins web. I did not do anything that is uniquely 4.1 in addition to 1.019. So this bug item is fully done.


4.1.0 released


Summary TablePlugin: Support for initsort of multiple tables in same topic
ReportedBy TWiki:Main.KennethLavrsen
Codebase 4.0.5, ~twiki4
SVN Range TWiki-4.1, Sat, 18 Nov 2006, build 12001
AppliesTo Extension
Component TablePlugin
Priority Normal
CurrentState Closed

Checkins 12339 12343 12344
TargetRelease minor
Edit | Attach | Watch | Print version | History: r16 < r15 < r14 < r13 < r12 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r16 - 2007-01-16 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback