lexicographic comparison of strings [case-insensitive]
<p>I want to sort the text of a file in lexicographic order but I'm having trouble understand what lexicographic order really does. </p>

<p>Ordering strings produces another issue; the relational operators use ASCII values so </p>

<p><code>betty &lt; Diane</code> is false when it should be true .</p>

<p>Consider a sample list : 
betty, Diane, 123, Ana, Megan, charles, two, 12.</p>

<p>How would I set that in lexicographic order?</p>