Do not collate "ا" and "و" in Persian language for category sort
authorAmir Sarabadani <Ladsgroup@gmail.com>
Wed, 20 Jul 2016 13:05:12 +0000 (17:35 +0430)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Wed, 20 Jul 2016 14:42:50 +0000 (14:42 +0000)
Bug: T139110
Change-Id: If174e02160c954500233e3a57945e267f2b4ae29

includes/collation/IcuCollation.php

index 27f917b..b956d4b 100644 (file)
@@ -93,7 +93,14 @@ class IcuCollation extends Collation {
                'be-tarask' => [ "Ё" ],
                'cy' => [ "Ch", "Dd", "Ff", "Ng", "Ll", "Ph", "Rh", "Th" ],
                'en' => [],
-               'fa' => [ "آ", "ء", "ه" ],
+               // RTL, let's put each letter on a new line
+               'fa' => [
+                       "آ",
+                       "ء",
+                       "ه",
+                       "ا",
+                       "و"
+               ],
                'fi' => [ "Å", "Ä", "Ö" ],
                'fr' => [],
                'hu' => [ "Cs", "Dz", "Dzs", "Gy", "Ly", "Ny", "Ö", "Sz", "Ty", "Ü", "Zs" ],