title: how to sort an ArrayList in ascending order using Collections and Comparator
body: <p>How to sort an <code>ArrayList</code> in ascending order using <code>Comparator</code>? I know how to sort it in descending order using: </p>
  
  <pre><code>Comparator mycomparator = Collections.reverseOrder();
  </code></pre>
  
  <p>then</p>
  
  <pre><code>Collections.sort(myarrayList,mycomparator);
  </code></pre>
  
  <p>just want to know how to sort it in ascending order using Collections and comparator? Thanks!</p>