Page MenuHomePhabricator

Fix sort order of ordinal numbers in Persian script
Open, Needs TriagePublic

Description

The ordinal numbers written in Persian typography are not sorted correctly during enumeration in category namespace.
Lets compare first few ordinals in English and Persian both in digit and text

1FirstOne۱اولیناول
2SecondTwo۲دومیندوم
3ThirdThree۳سومینسوم
4ForthFor۴چهارمینچهارم

Lets see an example:
Please compare the category of a producer's movies in English and Persian.
Among the list of movies, we focus on Dekalog or ده فرمان, here we list first few as well:

EnglishPersian (Expected order)
Dekalog: Oneده فرمان (قسمت اول)
Dekalog: Twoده فرمان (قسمت دوم)
Dekalog: Threeده فرمان (قسمت سوم)

But what happens actually is an order based on alphabets, this the actual order created by category:

ده فرمان (قسمت اول)1st
ده فرمان (قسمت پنجم)5th
ده فرمان (قسمت چهارم)4th
ده فرمان (قسمت دوم)2nd
ده فرمان (قسمت دهم)10th
ده فرمان (قسمت سوم)3rd
ده فرمان (قسمت ششم)6th
ده فرمان (قسمت نهم)9th
ده فرمان (قسمت هشتم)8th
ده فرمان (قسمت هفتم)7th

The correct and expected order in Persian would be (Only the ordinal part of the text is given here , that is the name of the movie and the word 'episode' is omitted in table below for brevity):

اول1st
دوم2nd
سوم3rd
چهارم4th
پنجم5th
ششم6th
هفتم7th
هشتم8th
نهم9th
دهم10th

Event Timeline

Change 572116 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/netbox-extras@master] Fix -extras for netbox 2.7 upgrade

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

Change 572116 merged by CRusnov:
[operations/software/netbox-extras@master] Fix -extras for netbox 2.7 upgrade

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