Page MenuHomePhabricator

Alphabetic operation logic of sort order function for numeric data in tables in russian language
Closed, DeclinedPublic


Author: Jumanjero

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.

Version: 1.21.x
Severity: major
See Also:


Sort_order_ru_wiki.png (1×1 px, 201 KB)



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:49 AM
bzimport set Reference to bz43165.
bzimport added a subscriber: Unknown Object (MLST).

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