Last modified: 2012-12-18 08:53:45 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 T45165, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43165 - Alphabetic operation logic of sort order function for numeric data in tables in russian language
Alphabetic operation logic of sort order function for numeric data in tables ...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.21.x
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ru.wikipedia.org/wiki/%D0%A1...
:
Depends on:
Blocks: 31601
  Show dependency treegraph
 
Reported: 2012-12-16 00:49 UTC by Jumanjero
Modified: 2012-12-18 08:53 UTC (History)
4 users (show)

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


Attachments
Screenshot of an article in russian wiki, "Внешний долг" column sortder in desc order (201.69 KB, image/png)
2012-12-16 00:49 UTC, Jumanjero
Details

Description Jumanjero 2012-12-16 00:49:44 UTC
Created attachment 11521 [details]
Screenshot of an article in russian wiki, "Внешний долг" column sortder in desc order

In russian wiki version when you try to sort data in a table in any (asc or desc) order it uses alphabetic sort logic instead of numeric, this way, number line 1, 2, 3, 10, 11, 20, 30 will be shown in the following order: 1, 10, 11, 2, 20, 3, 30.
I've noticed that bug when using russian version, however, I could not reproduce that in english version.
http://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D1%81%D1%82%D1%80%D0%B0%D0%BD_%D0%BF%D0%BE_%D0%B2%D0%BD%D0%B5%D1%88%D0%BD%D0%B5%D0%BC%D1%83_%D0%B4%D0%BE%D0%BB%D0%B3%D1%83
http://en.wikipedia.org/wiki/List_of_countries_by_external_debt
Comment 1 Bartosz Dziewoński 2012-12-16 00:56:40 UTC
Probably related to 42924.
Comment 2 Bartosz Dziewoński 2012-12-16 00:56:57 UTC
Bug 42924 that is.
Comment 3 Michael M. 2012-12-18 08:53:45 UTC
I don't think this is related to 42924. To determine the type (alpabetic / numeric / etc. ) the code looks at the first ~ 5 rows. In this case there are non-numeric values in the first row (более 70 600 000), so the type is set to alphabetic. You can fix this by setting the type manually (as I did: https://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D1%81%D1%82%D1%80%D0%B0%D0%BD_%D0%BF%D0%BE_%D0%B2%D0%BD%D0%B5%D1%88%D0%BD%D0%B5%D0%BC%D1%83_%D0%B4%D0%BE%D0%BB%D0%B3%D1%83&diff=prev&oldid=50777415)
See [[m:Help:Sorting]] for more information.
The column with the dates still doesn't sort correctly, you have to use data-sort-value to fix this, as explained in the documentation.

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


Navigation
Links