User:Dan Pelleg/Sandbox/Sortability bug

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). . at bugzilla: https://bugzilla.wikimedia.org/show_bug.cgi?id=32888

Works as expected
Embedded table has 5 columns:

Doesn't work
Embedded table has 6 columns:

Diagnosis improved
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:

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