C# solution using GroupBy and Sorting.
\n# Code\n\npublic class Solution {\n    public IList<IList<string>> GroupAnagrams(string[] strs) {\n        return strs\n            .GroupBy(s => new string(s
\n# Code\n```\npublic class Solution {\n    public IList<IList<string>> GroupAnagrams(string[] strs) {\n        return strs\n            .GroupBy(s => new string(s.OrderBy(c => c).ToArray()))\n            .Select(g => g.ToList() as IList<string>)\n            .ToList();\n    }\n}\n```
['C#']