title: Configure Solr to perform case-insensitive sort on values
body: <p>I have a field-name called "customer" contains the following values,</p>
  
  <ol>
  <li>Brooks Sports</li>
  <li>AM-Records</li>
  <li>1elememt</li>
  <li>ALTAVISTA</li>
  <li>Adidas</li>
  <li>3gdata</li>
  <li>Apple</li>
  <li>BMW</li>
  <li>7eleven</li>
  <li><p>bic corporation </p>
  
  <p>customer field in solr schema.xml</p>
  
  <pre><code>&lt;field docValues="true" indexed="true" multiValued="false" name="customer" stored="true" type="TextField"/&gt;
  </code></pre></li>
  </ol>
  
  <p>I need to perform case-insensitive sort on above customer values. so i can get the data as follow,</p>
  
  <ol>
  <li>1elememt</li>
  <li>3gdata</li>
  <li>7eleven</li>
  <li>Adidas</li>
  <li>ALTAVISTA</li>
  <li>AM-Records</li>
  <li>Apple</li>
  <li>bic corporation</li>
  <li>BMW</li>
  <li>Brooks Sports </li>
  </ol>
  
  <p>for this i create a new copyField named "customer_sort"
  field in scheme.xml</p>
  
  <pre><code>        &lt;field docValues="true" indexed="true" multiValued="false" name="customer_sort" stored="false" type="LowerTextField"/&gt;
  </code></pre>
  
  <p>fieldType in scheme.xml</p>
  
  <pre><code>        &lt;fieldType name="LowerTextField" class="solr.TextField" sortMissingLast="true" positionIncrementGap="1000"&gt;
          &lt;analyzer type="index"&gt;
              &lt;tokenizer class="solr.KeywordTokenizerFactory"/&gt;
              &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
  
          &lt;/analyzer&gt;
          &lt;analyzer type="query"&gt;
              &lt;tokenizer class="solr.KeywordTokenizerFactory"/&gt;
              &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
          &lt;/analyzer&gt;
      &lt;/fieldType&gt;
  </code></pre>
  
  <p>copyfield in scheme.xml</p>
  
  <pre><code>&lt;copyField source="customer" dest="customer_sort"/&gt;
  </code></pre>
  
  <p>currently the sort result is </p>
  
  <ol>
  <li>1elememt</li>
  <li>3gdata</li>
  <li>7eleven</li>
  <li>ALTAVISTA</li>
  <li>AM-Records</li>
  <li>Adidas</li>
  <li>Apple</li>
  <li>BMW</li>
  <li>Brooks Sports</li>
  <li>bic corporation </li>
  </ol>
  
  <p>sort happening based on ascii value. i.e.(A then a, B then b,...).</p>
  
  <p>Same happen when i tried alphaOnlySort.</p>
  
  <p>Can anybody please tell me what i'm missing? </p>
  
  <p>Thanks </p>