I have an Object array like this
Football[] FootballTeam = new Football[4];
FootballTeam[i] = new Football(ranked, names, played, w, d, l, GF, GA, GD,points); FootballTeam[0] = 0 Real Madrid 3 2 0 1 7:6 1 5 FootballTeam[1] = 1 Barcelona 3 0 0 3 4:9 -5 1 FootballTeam[2] = 2 Valencia 3 1 0 2 7:7 0 5 FootballTeam[3] = 3 Atletico Madrid 3 3 0 0 9:5 4 7
how can I sort this list by point and average(GD) or How can I print in order sorted by score and average? . I can delete "ranked".