Which programming language is this?
var byCity = people
.GroupBy(p => p.City)
.Select(g => new { City = g.Key, Count = g.Count() })
.OrderByDescending(x => x.Count);
Answer: C#
LINQ method chaining with
Play Programming Languages ▸
GroupBy, g.Key and an anonymous type new { ... } is C#.