I have a Custom Object Suppose Team
public class Team{
    String      name;
    int         teamNo;
    ArrayList<Team> innerTeams;
    int teamId;
    //Getters and Setter Methods
Now I want to Sort it in Ascending Order of First Property name  taking into account that each Team Object has a property of itself as Team as arraylist declared as innerTeams  How can I be able to Sort this. So utlimately when any arrayList of object Team is present it should be sorted.
Please anyone help me with this.
 
    