Last modified: 2012-12-31 15:19:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42634, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40634 - Table option for static rank order column, or row numbering
Table option for static rank order column, or row numbering
Status: RESOLVED DUPLICATE of bug 40618
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.21.x
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 31601
  Show dependency treegraph
 
Reported: 2012-09-30 08:07 UTC by Timeshifter
Modified: 2012-12-31 15:19 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Timeshifter 2012-09-30 08:07:59 UTC
Please see:
*[[Help:Sorting#Initial_alphabetical_sort_versus_initial_sort_by_rank_order]]
*[[Help:Sorting#Adding_a_separate_rank_column_.281.2C2.2C3.29_next_to_a_table]]

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:
data-sort-type="static"

For info on the data-sort-type forced-sort-mode function see:
*[[Help_talk:Sorting#HTML5]]

See data-sort-type info and an example table here:
[[Help:Sorting#Numerical_sorting_problems]]
Comment 1 Bartosz Dziewoński 2012-12-31 15:19:39 UTC
Marking as a dupe of bug 40618 since that one received more discussion.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links