Sort Arraylist in Android
<p>I'm trying to sort an ArrayList in my Android app, but its throwing an exception.  Here's the part of my code where it happens:</p>

<pre><code>List&lt;PackageInfo&gt; packs = getPackageManager().getInstalledPackages(0);  
Collections.sort(packs);
</code></pre>

<p>Does anybody have any ideas?</p>
