I have a group phase tournament bracket and I would like to retrieve a winner and a runner-up based on two criteria: the amount of wins as most important criterion and in case of a draw: game duration. The team with the most wins and the lowest game duration would be #1. The wins and the average game duration are retrieved from a scoreboard. I would like to display the name that goes with the winner and the runner-up, as if it were structured this way:


Team 1 | 1 wins | 12:00
Team 2 | 1 wins | 11:00
Team 3 | 3 wins | 10:00
Team 4 | 1 wins | 14:00

Winner:

Team 3

Runner-up:

Team 2

Feel free to work with that as if it were A1:C4. Thanks in advance.