I have created a simple game using Pascal 5.5. The program asks for 16 names of football (Aussie Rules) teams, and then pits these 16 teams against each other (using random numbers) in a 22-round season, ala the Australian Football League.
I am so far able to collate results from each 'round' into a ladder, but am unsure how to put the ladder in order from top team to bottom team. At the moment, the program just displays the teams in the order they are typed in at the start, with each team's wins, losses, ties, points for, points against, and percentage and points.
I want to be able to sort the ladder by points, then percentage.
I don't know much about any sort function in Pascal.