The rules for sorting two Chinese characters into pinyin order are as follows:
Rule of basic alphabet To arrange two Chinese characters into
basic alphabetical order, first compare the first letters of the pinyin letter strings of the two characters. If they are different, arrange the characters according to the letters' order in the alphabet (for example, 李 (
lǐ) comes before 張 (
zhāng), because the initial letter is before initial letter in the alphabet); if the first letters are the same, compare the second letters of both sides, and so on, until a pair of letters that are not the same is found and the Chinese characters are ordered accordingly (for example, 長 (
cháng) comes before 陳 (
chén) because the third letter precedes ). If the last letter of one of the strings is compared and the letters on both sides are still the same, then the shorter string comes first (for example, 陳 (
chén) comes before 程 (
chéng)).
Rule of ê and ü For two Chinese characters with the same pinyin basic letters, if there is a difference of basic letter and modified letter , or of basic letter and modified letter , then the pinyin with a modified letter comes after the pinyin without a modified letter. or the "Table of Syllables" (with tones) in "
Xiandai Hanyu Cidian". Chinese characters with exactly the same pinyin expressions, i.e. completely homonymous characters with the same initials, finals and tones, are usually sorted by means of
stroke-based sorting. ==Sorting words of multiple characters==