title: Sort arraylist of objects by one of their properties (double value)
body: <p>I'm attempting to sort an <code>ArrayList</code> of <code>BountyObject</code>s by their property <code>.getAmount()</code> which returns a <code>double</code>..</p>
  
  <p>I've looked at a similar question on here and it's not pointing me in the right direction, could anyone explain how I would sort this:</p>
  
  <pre><code>List&lt;BountyObject&gt; sortedList = new ArrayList&lt;BountyObject&gt;();
  
  for (BountyObject bo : bounties) // Where bounties is the original list of unsorted objects
  {
      // Sort them into the sorted list by bo.getAmount() - highest to lowest value
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated, thank you</p>