Sort a vector of custom objects
<p>How can I sort a vector of my custom object and choose which property to sort by?</p>

<p>I did see this question &amp; answer but I'm not too sure what its sorting it based on. Code example would be prefered to "methodology".</p>

<p><a href="http://stackoverflow.com/questions/2568059/sort-a-vector-of-custom-objects">Sort a Vector of custom objects</a></p>

<pre><code>public class ItemLocation {
    String icon;
    String title;
    String message;
    String subtext;
    String deviceId;
    double latCoords;
    double lngCoords;
    int expiary;
    int id;
    double proximity;
    String locSeen;
}
</code></pre>
