I\'m trying to create an \"ordered\" List of objects in c#, where the list will be ordered by the most common occurrences of values in ImdbId property. I am not using databa
Try this:
var newList = List.GroupBy(x=>x.ImdbId) .OrderByDescending(g=>g.Count()) .SelectMany(g=>g).ToList();