title: How do i sort this with comparator?
body: <p>I have arraylist with various objects "Equipo",
  and i have to sort it in various sorting parameters</p>
  
  <pre><code>public class Equipo {
  
  private String nombre;
  private int puntos;
  private int cantidadPartidosGanados;
  private int golesDiferencia;
  private int golesAnotados;
  private int golesEnContra;
  </code></pre>
  
  <p>if int puntos; is equals sort by int cantidadPartidosGanados; if that is equals sort by int golesDiferencia; if that is equals sort by int golesAnotados; if that is equals sort by int golesEnContra; if that is equals sort by String nombre;</p>
  
  <p>thank you very much!!!</p>