title: How to properly sort upper and lowercase Strings in Array in Android?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5815423/sorting-arraylist-in-android-in-alphabetical-order-case-insensitive">Sorting arraylist in Android in alphabetical order (case insensitive)</a>  </p>
  </blockquote>
  
  
  
  <p>Hi everybody I have a small problem in sorting. </p>
  
  <p>I am taking one collection of type String. When I am sorting it is giving me the wrong result that I was expecting</p>
  
  <p>Here is my code : </p>
  
  <pre><code>List &lt;String&gt; caps = new ArrayList&lt;String&gt;();  
  caps.add("Alpha");  
  caps.add("Beta");  
  caps.add("alpha1");  
  caps.add("Delta");  
  caps.add("theta");  
  
  Collections.sort(caps);
  </code></pre>
  
  <p>It is sorting like: </p>
  
  <p>Alpha 
  Beta 
  Delta 
  alpha1 
  theta. </p>
  
  <p>Here it can take any type of string even uppercase / lowercase. But the lowercase words are coming later. </p>
  
  <p>I want the out put like : </p>
  
  <p>Alpha 
  alpha1 
  Beta 
  Delta 
  theta </p>
  
  <p>Is there an easy built-in method for this?</p>