Page MenuHomePhabricator

Table sorting for number values should ignore approximate/estimate "~" character
Open, LowPublic

Description

Author: pottspotts

Description:
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.


Version: 1.23.0
Severity: enhancement
URL: http://en.wikipedia.org/wiki/List_of_Ebola_outbreaks

Details

Reference
bz63055

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:00 AM
bzimport set Reference to bz63055.

Thanks for taking the time to report this!

Use data-sort-value="36" on the table field.

pottspotts wrote:

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?