in reply to sorting Chinese characters
If it were me, I think I'd step back from the problem a moment and ask myself if trying to synchronize two independent sorting mechanisms is really what I want. Sounds like a potential source of on-going headaches.
Time flies like an arrow. Fruit flies like a banana.
Would assigning a unique identifier that defines order on both systems work in the given situation?
Time flies like an arrow. Fruit flies like a banana.
In Section
Seekers of Perl Wisdom