C# LINQ One Liner
One liner code to do this in C#. Not the very best in time and space complexities but interesting nevertheless!\n\n\npublic string[] ReorderLogFiles(string[] lo
One liner code to do this in C#. Not the very best in time and space complexities but interesting nevertheless!\n\n```\npublic string[] ReorderLogFiles(string[] logs)\n{\n\tif (logs.Length == 0) return logs;\n\n\tvar letArr = logs.Where(x=> !x.Split(" ")[1].All(char.IsDigit))\n\t\t.OrderBy(x => x.Substring(x.IndexOf(" ") + 1))\n\t\t.ThenBy(x => x.Substring(0, x.IndexOf(" ")))\n\t\t.Union(logs.Where(x => x.Split(" ")[1].All(char.IsDigit))).ToList();\n\n\treturn letArr.ToArray();\n}\n```
[]