title: How to sort ArrayList comparing the distance from current location?
body: <p>I have a ArrayList of some objects which contains this values</p>
  
  <pre><code>String name
  String latitude
  String longitude
  </code></pre>
  
  <p>I can retrieve my current location, latitude, longitude. Now my question is how can I sort this arraylist comparing with the distance between my current location and the locations of the objects of that arrayList? I can use Comparator to sort arrayList alphabetically but how to do this kind of sorting?</p>