Can you ask specific questions about your problem?
What do the values you labeled as output and players.txt represent?
The output part has 3 lines with 2 tokens on each line, the players.txt part has 4 lines with 3 tokens on each line. What is the relationship between these two?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Where in your code do you do the sort?
Can you explain what you are doing in the for loop in the code you posted?
And also why do you call sort before all the data is read in?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Your last post answered the first question, but left off the answers for the other two.
I'll give them again.
Can you explain what you are doing in the for loop in the code you posted?
And also why do you call sort before all the data is read in?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656