how to sort an ArrayList by its objects properties?
<p>Say I have an ArrayList of custom object, such as </p>

<pre><code>class fileOjb
{
    String path;
    String format;
    int size;
    int dateadd;
}
</code></pre>

<p>How should I sort it by
- path, format, size or dateadded?</p>

<p>Thanks!</p>
