var list = stuList.GroupBy(b => b.PersonalId).Select(g => (new { personalId = g.Key, count = g.Count() })).OrderByDescending(t => t.count).ToList();