Page MenuHomePhabricator

Sortable tables using rowspan get messed up on sort
Closed, ResolvedPublic

Description

Author: kernel

Description:
On this page (http://en.wikipedia.org/wiki/Comparison_of_CECB_units), there's a long table of products, with a number of columns containing their properties. At the top of the table, there are headers with buttons that allow for sorting of the table based on the column you select.

If you press one of those buttons (the one for "Smart Antenna") for instance, you'd expect to see the same table, sorted by the contents of that column.

It does produce a table, but it's not sorted by anything obvious, and the table structure starts to break down part way down the page (too many/not enough columns, wrong data in columns, etc).

It looks like the code for sorting tables can't handle this table, and is dying badly.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/Comparison_of_CECB_units

Details

Reference
bz17515

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:30 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz17515.
bzimport added a subscriber: Unknown Object (MLST).

Tweaking summary to be more generic: AFAICT, it's the usage of rowspan (cells spanning multiple rows) that causes the table to be messed up.

ulyssite wrote:

Hello,
I also faced that bug.
It produced an ugly table :
http://fr.wikipedia.org/w/index.php?title=Guerre_de_Troie&oldid=60538230

It would be very useful to correct the bug.

Thank you very much,
Ululo

.

*** This bug has been marked as a duplicate of bug 8028 ***

  • Bug 28859 has been marked as a duplicate of this bug. ***