What is the best way to sort by a value, find the index of the item for its rank, but take into account ties. The index for 5th place could have two items so 6th is skipped and the next iteration starts at 7th. Is the best way to do this to do a group by and track an index?
return teamTournamentResults
.OrderByDescending(t => t.RankingPoints)
.Select((item, index) => new { Item = item, Index = index })
.Select(q => new TeamSummaryResultsModel
{
DivisionRanking = q.Index + 1,
RankingPoints= q.Item.RankingPoints,