Hello, I am making some type of game, where I have 8 football teams and I want to have updating schedule like when match are completed, it will sort teams by their number of points from first to eighth, but I don’t know how to make it. Is there any solution how it can be done without making really long and confusing script?
No.
I recommend starting here: Learn
I mean, the script does not have to be long. What you described sounds like you basically only want to sort a list based on a numeric value, representing the points that team currently has.
So for example, if you had a list of tuples<int, int>, where the first number represents the score and the second number the id of the team, then the sorting can be done in as little as one line of code. Needless to say, the above structure itself needs to be defined too.
There are plenty of examples for sorting in these kinds of situations: