<?xml version="1.0" encoding="windows-1252"?>
<node id="1016639" title="Re^2: sorting Chinese characters" created="2013-02-01 23:00:19" updated="2013-02-01 23:00:19">
<type id="11">
note</type>
<author id="66604">
larryk</author>
<data>
<field name="doctext">
The key in the index is unique the Unicode standard is supposed to define the order. I was rather hoping I could depend on that, since it is supposed to be a standard.
&lt;p&gt;
Looks like my options are:
&lt;ul&gt;
&lt;li&gt;I could use the ordinal value of the characters and do a numeric sort instead of a textual sort. That's what I was suggesting in point 2 above.
&lt;li&gt;The only other option is to ditch my Perl index creation and rewrite it in C# so that the index creation and the index usage are both using exactly the same sorting library. Not sure I want to go there yet, though.
&lt;/ul&gt;
Any other options?
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-66604"&gt;
&lt;pre&gt;&lt;font color=#b0c4de size=2&gt;&lt;a href="/index.pl?node=larryk"&gt;   larryk                                          &lt;/a&gt;
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
&lt;/font&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1016504</field>
<field name="parent_node">
1016545</field>
</data>
</node>
