C# 4 lines
\npublic class Solution {\n    public string[] ReorderLogFiles(string[] logs) {\n            BigInteger i;\n\n            var dl = logs.Where(l => BigInteger.Tr
```\npublic class Solution {\n    public string[] ReorderLogFiles(string[] logs) {\n            BigInteger i;\n\n            var dl = logs.Where(l => BigInteger.TryParse(l.Split(\' \')[1], out i));\n\n            var ll = logs.Except(dl).OrderBy(l => l.Substring(l.IndexOf(\' \'))).ThenBy(t => t.Substring(0, t.IndexOf(\' \')));\n\n            return ll.Concat(dl).ToArray();\n    }\n}\n```
[]