Last modified: 2014-06-18 13:25:33 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 T65055, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63055 - Table sorting for number values should ignore approximate/estimate "~" character
Table sorting for number values should ignore approximate/estimate "~" character
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Rohan Rawat
http://en.wikipedia.org/wiki/List_of_...
:
Depends on:
Blocks: 31601
  Show dependency treegraph
 
Reported: 2014-03-25 04:33 UTC by Bryan Potts
Modified: 2014-06-18 13:25 UTC (History)
6 users (show)

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


Attachments

Description Bryan Potts 2014-03-25 04:33:24 UTC
Sorting of a numerical column breaks when ~ is used to denote an estimated figure, such as ~36, seen in this example screenshot: http://d.pr/i/ds2Z

I first noticed this on the Ebola page:

http://en.wikipedia.org/wiki/List_of_Ebola_outbreaks

It looks like "~36" is currently being calculated as 0.
Comment 1 Andre Klapper 2014-03-26 12:34:35 UTC
Thanks for taking the time to report this!
Comment 2 Derk-Jan Hartman 2014-03-26 13:09:02 UTC
Use data-sort-value="36" on the table field.
Comment 3 Bryan Potts 2014-03-26 21:34:29 UTC
The bug I meant to report was that table sorting does not work for these special characters in general, not that specific value and field in that single page. Is there no way to factor in '~' for accurate sorting? I assume this is a problem on thousands of articles. In fact, there's another example of it still broken on this same Ebola page: http://d.pr/i/1LGg

It looks you are using jquery table sorter? Is it possible for me to submit a patch myself?

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


Navigation
Links