title: How to use java's sort function in a way that it will sorts 2 before 11?
body: <p>I am using the following java code to sort the values: -</p>
  
  <pre><code> Collections.sort(values);
  </code></pre>
  
  <p>It is working correctly except that it is sorting as follows: - 
  1 10 2 3 4</p>
  
  <p>I need it to sort as follows: -
  1 2 3 4 10</p>