Page MenuHomePhabricator

Numeric collation doesn't correctly sort titles with leading zeros
Closed, ResolvedPublic1 Estimated Story Points

Description

If $wgCategoryCollation is set to 'numeric' (which tell it to use the NumericUppercaseCollation class), numbers that start with leading zeros are sorted incorrectly. For example:

0
1
9
01
10
99
001
019
023
100

Event Timeline

kaldari triaged this task as High priority.Oct 20 2016, 5:48 PM
kaldari set the point value for this task to 1.
kaldari added a subscriber: Bawolff.

Change 317004 had a related patch set uploaded (by Kaldari):
Fixing numeric sorting for numbers with leading zeros

https://gerrit.wikimedia.org/r/317004

Change 317004 merged by jenkins-bot:
Fixing numeric sorting for numbers with leading zeros

https://gerrit.wikimedia.org/r/317004

matmarex assigned this task to kaldari.
matmarex edited projects, added MediaWiki-Categories; removed Patch-For-Review.
matmarex subscribed.

Wikis using the 'numeric' collation need to have the updateCollation.php script re-ran (after the patch is deployed) to correct the missorted entries.