Jump to content

User:Dan Pelleg/Sandbox/Sortability bug

From Wikipedia, the free encyclopedia

When a table is embedded into the header of a sortable table, and the embedded table has more than five columns, then the main table's headers' sortability attribute is disabled.

If the embedded table's cells are defined as headers, then the sortability attribute is additonally applied to these cells.

I suspect this bug was introduced at the same time the sorting button stopped looking like this: "►◄" and started looking like this: "

".
(On December 8th 2011).

.

Works as expected

[edit]

Embedded table has 5 columns:

h1 h2 h3 h4 h5
s1 s2 s3 s4 s5+s6

Doesn't work

[edit]

Embedded table has 6 columns:

h1 h2 h3 h4 h5
s1 s2 s3 s4 s5 s6

Diagnosis improved

[edit]

It would seem that as long as the "enveloping" table doesn't have LESS columns, their sortability preoprty remains in tact; here the above table with an additional column in the main table:

h1 h2 h3 h4 h5 h6
s1 s2 s3 s4 s5 s6

and here the first table with one column LESS in the main table:


h1 h2 h3 h4
s1 s2 s3 s4 s5+s6