Possible Duplicate:
Sorting an ArrayList of Contacts
I am storing DataNode objects in an ArrayList. The DataNode class has an integer field called degree.
I want to retrieve DataNode objects from nodeList in the increasing order of degree. How can I do it.
List<DataNode> nodeList = new ArrayList<DataNode>();
 
     
     
     
    