C# LINQ, one line code, but not really know time complexity
\tpublic class Solution \n\t{\n\t\tpublic string[] ReorderLogFiles(string[] logs) \n\t\t{\n\t\t\t return logs.Where(x => !char.IsDigit(x[x.IndexOf(\' \') + 1]))
\tpublic class Solution \n\t{\n\t\tpublic string[] ReorderLogFiles(string[] logs) \n\t\t{\n\t\t\t return logs.Where(x => !char.IsDigit(x[x.IndexOf(\' \') + 1]))\n\t\t\t\t.OrderBy(y => y.Split(\' \', 2)[1])\n\t\t\t\t.ThenBy(z => z.Split(\' \', 2)[0])\n\t\t\t\t.Union(logs.Where(x => char.IsDigit(x[x.IndexOf(\' \') + 1])))\n\t\t\t\t.ToArray();\n\t\t}\n\t}
[]