title: Get earliest Date from Array of Dates
body: <p>Imagining if have got an array of Dates like so <code>var dates = [Date1, Date2, Date3]</code>. How do I get the earliest of those three date? I've tried several ways I found online, but none of them worked properly. </p>
  
  <p>...and: how would I do that, if I had an array of a custom class 'reminder' with a property .fireDate, which means in that case: how would I get the object with the earliest .fireDate property?</p>
  
  <p>I'm sorry I can't post any sample code, I'm posting this from my mobile phone ;-)</p>