ios - NSSortDescriptor in Chinese... how? -


i adding chinese support application.

i have line sorts english , other languages

    nssortdescriptor *sortbyitem =  [nssortdescriptor sortdescriptorwithkey:@"countryname" ascending:yes  selector:@selector(localizedstandardcompare:)]; 

but line appears not sorting in chinese.

how modify line sort in chinese?

your assumption nssortdescriptor wrong , numbers correct not assumption. depends on locale used in each case (was ios device in chinese locale? mac?) chinese sorted radical+stroke, need little experience know how break characters down form. frankly trust nssortdescriptor first in case. numbers hardly gold standard in such things.

your best bet if you're working on localizing engage service specializes in you. if don't have enough experience in language know if you're sorting correctly, it's hard imagine getting rest correct.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -