Helllo,
I have an ArrayList of OBJECTS (teams). They are football teams and I would like to sort them out through their points. Obviously I am fully aware ArrayLists are sorted via the order they are inserted.
But I have a TEAM class that has gamesWon, gamesLost, gamesTied and points based on a match result.
I have everything ready but figured that sorting out an ArrayList through it's points would be a cool feature to make.
I have read the Collections.sort(myArrayList) online, but this sorts based on ONE type of variable, and since I have objects within the ArrayList, I would like to sort this out.
Thank you.
Marco