Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!v39g2000pro.googlegroups.com!not-for-mail
From: damayi <damayi@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: How to sort non-ascii characters?
Date: Wed, 15 Oct 2008 23:29:18 -0700 (PDT)
Organization: http://groups.google.com
Lines: 18
Message-ID: <69507506-5d62-4493-b355-9225ed0c8654@v39g2000pro.googlegroups.com>
NNTP-Posting-Host: 211.160.21.48
Mime-Version: 1.0
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1224138558 29924 127.0.0.1 (16 Oct 2008 06:29:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 16 Oct 2008 06:29:18 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v39g2000pro.googlegroups.com; posting-host=211.160.21.48; 
	posting-account=BfRwPAkAAAA6EcWmHJDYuRO-FFj7x56H
User-Agent: G2/1.0
X-HTTP-Via: 1.1 ISA02
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CIBA; 
	FDM),gzip(gfe),gzip(gfe)
Bytes: 1703
Xref: news.mathworks.com comp.soft-sys.matlab:495520


Dear MATLAB users
I want to sort a string that contains non-ascii charaters, such as
Chinese Words.
I found that MATLAB sort these character according with its double
value. However, I want to sort them using another rule, for example
'PinYin' which represents its pronouncation.
Here is an example,
A =3D '=CE=D2=B0=AE=B1=B1=BE=A9=B5=D8=B0=B2=C3=C5'
Using sort(A), we can get:
=CE=D2=B0=AE=B1=B1=BE=A9=B5=D8=B0=B2=C3=C5

this sequence is sorted according to character's double value. Now I
want to sort it according to its pronouncation, how can I do that?

Best Regards
mayi
2008-10-16