Page MenuHomePhabricator

Numeric collation doesn't correctly sort titles with leading zeros
Closed, ResolvedPublic1 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 created this task.Oct 20 2016, 5:47 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 20 2016, 5:47 PM
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 closed this task as Resolved.Oct 20 2016, 8:22 PM
matmarex assigned this task to kaldari.
matmarex edited projects, added MediaWiki-Categories; removed Patch-For-Review.
matmarex added a subscriber: matmarex.

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

DannyH moved this task from Untriaged to Archive on the Community-Tech board.Oct 24 2016, 10:55 PM