title: Sort the array of string Lexicographically
body: <p>I have an array of string in Java. How do I sort it lexicographically? Is there any built-in function in <code>Collection.sort</code> or <code>Arrays.sort</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>0) BANANA
  1) ANANA
  2) NANA
  3) ANA
  4) NA
  5) A
  </code></pre>
  
  <p>after sorting:</p>
  
  <pre><code>5) A
  3) ANA
  1) ANANA
  0) BANANA
  4) NA
  2) NANA
  </code></pre>