Python 1-liner
\nclass Solution:\n    def reorderLogFiles(self, logs):\n        return sorted(filter(lambda l: l[l.find(" ") + 1].isalpha(), logs), key = lambda x: (x[x.find("
```\nclass Solution:\n    def reorderLogFiles(self, logs):\n        return sorted(filter(lambda l: l[l.find(" ") + 1].isalpha(), logs), key = lambda x: (x[x.find(" "):], x[:x.find(" ")])) + list(filter(lambda l: l[l.find(" ") + 1].isdigit(), logs))\n```\n* More readable version\n```\nclass Solution:\n    def reorderLogFiles(self, logs):\n        l = filter(lambda l: l[l.find(" ") + 1].isalpha(), logs)\n        d = filter(lambda l: l[l.find(" ") + 1].isdigit(), logs)\n        return sorted(l, key = lambda x: (x[x.find(" "):], x[:x.find(" ")])) + list(d)\n```
[]