title: How to sort an arraylist of objects by a property?
body: <p>Lets say you have an <code>Arraylist</code> of <code>HockeyPlayer</code> objects.  </p>
  
  <p>How could you sort that if they all have a variable <strong>int goalsScored</strong>.  How could you sort them by goalsScored?</p>