https://bugzilla.wikimedia.org/show_bug.cgi?id=17105
Summary: Numeric table sorting broken
Product: MediaWiki
Version: unspecified
Platform: All
URL: http://en.wikipedia.org/wiki/List_of_countries_by_GDP_(n
ominal)_per_capita
OS/Version: All
Status: NEW
Keywords: need-review, patch
Severity: normal
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
A column which should sort numerically but which contains even one non-numeric
element will not sort correctly or will produce strange results. It seems to
sort numerically but leaves lots of numbers out of place at the bottom of the
table.
This appears to be caused by recent diff:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?r1=42576&r2=42715
which allows ts_parseFloat to return a non-numeric value. This is rather
pointless as the return value isn't see by anything other than javascript's
table.sort() which doesn't appear to like it very much. Although browsers could
handle this better, it affects (as far as I can see) Firefox and Safari.
For a (clearer) example see:
http://en.wikipedia.org/wiki/User:Blue-Haired_Lawyer/sandbox2
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l