I have a data with multiple lines that are similar. They are latest results in games and for example if there are 3 goals that are scored in the game, that would mean 3 lines.

I want to distinct one game one line. But the distinct lines have to be the newest (firstOrDefault?)
I do want to show both status=Confirmed and status=Open but obviously i don´t want to show the same game both “Confirmed” and “Open”
So i want to group by both columns “Hometeam” and “outteam”. But for same game I would get 3 lines if there were 3 goals but i want the “newest line”.
Could someone help me with this?
You could try something like this:
Confirmedcomes beforeOpenin alphabetical order)Open), finds entry with highest combined score.Demo: http://ideone.com/vlCtw
Sample Result: