Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ordered = playerPositionSkill.OrderByDescending(x => x.Value.Values.Sum()).ThenBy(p => p.Key);
- foreach (var player in ordered)
- {
- string name = player.Key;
- int skills = player.Value.Values.Sum();
- Console.WriteLine($"{name}: {skills}");
- foreach (var positins in player.Value.OrderByDescending(x=>x.Value).ThenBy(x=>x.Key))
- {
- Console.WriteLine($"{positins.Key} <::> {positins.Value}");
- }
Advertisement
Add Comment
Please, Sign In to add comment