How Do You Sort Chinese Numbers?


Imagine you have a series of number you wish to sort. Sorting is a well known computer science problem - generally speaking you compare one value to the next and then move the item either up or down a list. With "English" characters, that's fairly easy. When a computer sees the character 1 it's really seeing the Unicode character U+0031. When it sees 2 it's really seeing the character U+0032 and so on. The Arabic numbers we use (0 - 9) have an identical ordering in Unicode. This makes it…

Continue reading →