title: sorting (constructor) in Java
body: <p>For example, I have two objects:</p>
  
  <pre><code>Icecream ice1 = new Icecream(vanilla, newDate(11, 09, 09));
  Icecream ice2 = new Icecream(choko, newDate(10, 08, 08));
  // where first argument is a String and second argument is a Date 
  </code></pre>
  
  <p>how can I print the out so that they will be ordered by the date starting from earliest? (toStrign method is already configured)</p>
  
  <p>Output sholud be:</p>
  
  <pre><code>Vanilla, 10-08-08
  Vanilla, 11-09-09
  </code></pre>
  
  <p>Thank you!</p>