title: Sort List<T> of objects by a particular rule?
body: <p>I have this list:</p>
  
  <pre><code>List&lt;Country&gt; countryList = new ArrayList&lt;Country&gt;();
  </code></pre>
  
  <p>And I want to sort the countries by their name, by using the method <code>getCountry()</code>.
  How can achieve this?</p>
  
  <p>UPDATE:</p>
  
  <pre><code>public class Country implements Comparable
  @Override
  public int compareTo(Object another) {
      // TODO Auto-generated method stub
      return 0;
  }
  </code></pre>
  
  <p>Can you tell how to compare them to get it sorted by Strings?
  Argentina,
  Austria,
  Brazil, etc.</p>