I'm assuming you have lists somewhat like this:
+-------+-----+-----+------+------+---+
|gameID|time1|time2|score1|score2|mod|
+-------+-----+-----+------+------+---+
|1 |10
+-------+-----+-----+------+------+---+
|1 |13
+-------+-----+-----+------+------+---+
|2 |44
+-------+-----+-----+------+------+---+
etc...
Basically what I was suggesting was looping through your list, putting each one with a certain gameID into an array of sorts, then sorting THAT array
I.E. (php-esque psudocode)
Code:
games_array = array()
foreach(gamelist){
games_array[gameslist['id']] => gamelist
}
You'd end up with an array of multiple list items. Sort this however you see fit. Custom data structures might be useful for it as well, depending on your language