c# order by descending on 2 values

77

c# order by descending on 2 values -

var sortedTeams = nflTeams.OrderBy(t => t.Conference)
                    .ThenBy(t => t.Division)
                    .ThenBy(t => t.Team);
Code language: C# (cs)

Comments

Submit
0 Comments