Regarding sorting of list without iterating
<p>I have an array list , now i want to sort it without iterating..my array list conatain duplicate elements too , that duplicate elements should also be removed in final outcome sorted list , but all this should be done without iterating ...please advise</p>

<pre><code> ArrayList list=new ArrayList();
      list.add("Ram");
       list.add("Dinesh");
      list.add("Sachin");
      list.add("Dinesh");
</code></pre>

<p>Please advise</p>
