Table option for static rank order column, or row numbering
Closed, ResolvedPublic


Author: zedlightman

Please see:

Adding a separate rank-order column in a separate table to the side of the main table makes updating list tables much easier. Especially for the many country lists with over 200 rows. See:
*[[Category:Lists of countries]]

But adding a separate table with a rank-order column in it only works for some tables. Read why in the info in the above links.

A better solution would be an integral rank-order column that acted like row numbering. Header rows would not be numbered. See bug 2315 and bug 10433. In other words the row numbers stay in order (1,2,3) when other column sort buttons are clicked.

The rank-order column would still have a sort button, and its order could be changed when, and only if, its sort button is clicked. It would never change its order when sort buttons on other columns were clicked. It would always be in either ascending or descending order.

Maybe we need a new value added to the data-sort-type forced-sort-mode function of tablesorter. Maybe something like this:

For info on the data-sort-type forced-sort-mode function see:

See data-sort-type info and an example table here:

Version: 1.21.x
Severity: enhancement

bzimport added a project: MediaWiki-JavaScript.Via ConduitNov 22 2014, 12:51 AM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz40634.
bzimport created this task.Via LegacySep 30 2012, 8:07 AM
matmarex added a comment.Via ConduitDec 31 2012, 3:19 PM

Marking as a dupe of bug 40618 since that one received more discussion.

  • This bug has been marked as a duplicate of bug 40618 ***

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.