IcuCollation: Sort digits under localised digits' headings
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 12 Oct 2013 22:21:01 +0000 (00:21 +0200)
committerTim Starling <tstarling@wikimedia.org>
Thu, 12 Dec 2013 04:39:39 +0000 (04:39 +0000)
commit66abb4b620438fec1953e969c0a70ca8748747b6
tree88cebbabe2c5879fd3776746cd13c2d03fbb18c5
parentadc81bba15b5ede50b3fa228951bdf8f5d7c3228
IcuCollation: Sort digits under localised digits' headings

Previously both '1' and '۱' ("DIGIT ONE" and "EXTENDED ARABIC-INDIC
DIGIT ONE") were sorted under '1' heading, regardless of collation
locale.

Now they will be both sorted under localised heading name (transformed
using Language#formatNum), for example '1' for 'uca-en' collation or
'۱' for 'uca-fa' collation.

Bug: 55630
Change-Id: I0b745d955a6e72f53873c95648087aa5f90a8852
includes/Collation.php