Change sort function to be difference of gameId