title: (Java) How can I sort an array of objects, and break ties between two objects?
body: <p>Say I have an object - <code>Team</code>. <code>Team</code> has three fields, <code>wins</code>, <code>losses</code> and <code>draws</code>.</p>
  
  <p>If I have a few objects say <code>Team1</code>, <code>Team2</code>, <code>Team3</code>, where <code>Team1</code> has 3 wins, 2 losses, and 1 tie, <code>Team2</code> has 3 wins and 3 losses, and <code>Team3</code> has 2 wins, 3 losses, and 1 tie.</p>
  
  <p>Put all three teams in an array.</p>
  
  <p>I am trying to sort (I know how to do this.. implement <code>Comparable</code>, override <code>compareTo()</code> use <code>Array.sort</code>) them by wins, and if two teams have the same wins, I want to then sort them by losses (and eventually a third field will be added to further break ties).</p>
  
  <p>Should I write my own sort method? Can someone point me in the right direction because I have no clue where to go with this.</p>